fixed deploy playbook

This commit is contained in:
Yannic Kilcher
2023-01-16 20:19:37 +01:00
parent 8323343224
commit 6ccbd38462
+3 -1
View File
@@ -136,7 +136,9 @@
FASTAPI_KEY: "{{ web_api_key }}"
NEXTAUTH_SECRET:
"{{ lookup('ansible.builtin.env', 'WEB_NEXTAUTH_SECRET') }}"
NEXTAUTH_URL: http://web.{{ stack_name }}.open-assistant.io/
NEXTAUTH_URL:
"{{ 'https://open-assistant.io/' if stack_name == 'production' else
('https://web.' + stack_name + '.open-assistant.io/') }}"
ports:
- "{{ website_port }}:3000"
command: bash wait-for-postgres.sh node server.js