This commit is contained in:
2022-08-02 06:40:29 +05:30
parent a2e773b3ab
commit 5713d3d410
16 changed files with 179 additions and 274 deletions

View File

@ -13,7 +13,7 @@
name: "{{ backend_image }}"
source: pull
state: present
# force_source: yes
force_source: yes
- name: Upload the .env file
template:
@ -28,12 +28,12 @@
restart_policy: "unless-stopped"
command: sh -c "cp -r /app/public/ / && rm -rf tmp/pids && ./bin/rails s -p 3003 -b '0.0.0.0'"
env_file: "/var/lib/{{ host_directory }}/.env"
links:
- "postgres:db"
published_ports:
- "127.0.0.1:3003:3003"
volumes:
- "/var/lib/{{ host_directory }}/frontend:/public"
links:
- "postgres:db"
- name: Check if Nginx conf file exists
stat: path="/etc/nginx/sites-available/{{ http_conf }}"