Skip to content

Commit

Permalink
Try speeding up build
Browse files Browse the repository at this point in the history
  • Loading branch information
Joel Johnston committed Nov 16, 2023
1 parent 6f8fc6f commit 5c1b9de
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions cicd/Ansible-Playbook-Web-Deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,16 @@
tasks:

- name: Copy build artifacts
copy:
synchronize:
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/blogapp/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 5c1b9de

Please sign in to comment.