Skip to content

Commit

Permalink
Update deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
Joel Johnston committed Nov 16, 2023
1 parent 482097c commit 505e7f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cicd/Ansible-Playbook-Web-Deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@

- name: Copy build artifacts
copy:
src: ../blog-app/dist
src: ../ngx-joeljca-blogapp-2/dist
dest: /var/www/joelj.ca-{{ slot }}

- name: Start PM2 process
shell:
chdir: /var/www/joelj.ca-{{ slot }}
cmd: "(pm2 delete joeljca{{ slot }} || true) && APPLICATIONINSIGHTS_CONNECTION_STRING='{{ node_insights_connection_string }}' PORT={{ slot_port }} pm2 start /var/www/joelj.ca-{{ slot }}/dist/blog-app/server/main.js --name joeljca{{ slot }} && pm2 save"
cmd: "(pm2 delete joeljca{{ slot }} || true) && APPLICATIONINSIGHTS_CONNECTION_STRING='{{ node_insights_connection_string }}' PORT={{ slot_port }} pm2 start /var/www/joelj.ca-{{ slot }}/dist/blogapp/server/main.js --name joeljca{{ slot }} && pm2 save"

0 comments on commit 505e7f1

Please sign in to comment.