From 49aac018801f6e2c7eefb0c412abab4c0e118448 Mon Sep 17 00:00:00 2001 From: CrazyCraftix <43807375+CrazyCraftix@users.noreply.github.com> Date: Sun, 21 Apr 2024 10:53:36 +0200 Subject: [PATCH] fix deploy workflow --- .github/workflows/deploy_to_gcp.yml | 2 +- server-systemd-service-template.j2 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy_to_gcp.yml b/.github/workflows/deploy_to_gcp.yml index 7134bcc..6aebe94 100644 --- a/.github/workflows/deploy_to_gcp.yml +++ b/.github/workflows/deploy_to_gcp.yml @@ -83,7 +83,7 @@ jobs: run: | echo '${{ secrets.GOOGLE_CREDENTIALS }}' > ../google_credentials.json echo 'ansible-node-inventory:' && cat ansible-node-inventory - ansible-playbook -i ansible-node-inventory --key-file "../deploy-state/id_ed25519" ansible-playbook.yml --user user --extra-vars + ansible-playbook -i ansible-node-inventory --key-file "../deploy-state/id_ed25519" ansible-playbook.yml --user user rm ../google_credentials.json env: ANSIBLE_HOST_KEY_CHECKING: false diff --git a/server-systemd-service-template.j2 b/server-systemd-service-template.j2 index a34114b..031f914 100644 --- a/server-systemd-service-template.j2 +++ b/server-systemd-service-template.j2 @@ -6,7 +6,7 @@ After=network.target User=root Type=simple Environment="GOOGLE_APPLICATION_CREDENTIALS=/etc/translate-webserver/google_credentials.json" -Environment="REDIS_CONNECTION={{ redis_host }}" +Environment="REDIS_CONNECTION=redis://{{ redis_host }}:6379" ExecStart=/usr/local/bin/translate-webserver [Install]