Skip to content

Commit 7a984e4

Browse files
Changed the hosts in configuration/deploy.yml to all
1 parent 5a8ee83 commit 7a984e4

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

‎.github/workflows/deploy.yml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ jobs:
4242
env_allowed_hosts: "${{ secrets.DJANGO_ALLOWED_HOSTS }}"
4343
env_email_host_user: "${{ secrets.EMAIL_HOST_USER }}"
4444
env_email_host_password: "${{ secrets.EMAIL_HOST_PASSWORD }}"
45+
env_monit_password: "${{ secrets.MONIT_PASSWORD }}"
4546
EOF
4647
4748
- name: Set up SSH Access to Azure VM

‎configuration/deploy.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
- name: Deploy Django Application
3-
hosts: webservers
3+
hosts: all
44
become: yes
55
remote_user: azureuser
66

@@ -102,7 +102,7 @@
102102
group: azureuser
103103

104104
- name: Restart or Start Next.js with PM2
105-
shell: pm2 restart nexjs-frontend || pm2 start npm --name "nextjs-frontend" --start
105+
shell: pm2 restart nextjs-frontend || pm2 start npm --name "nextjs-frontend" -- start
106106
args:
107107
chdir: "{{ project_dir }}/client"
108108
become_user: azureuser

0 commit comments

Comments
 (0)