Skip to content

Commit

Permalink
feat: Update Nginx configuration handling in CI workflow and Docker C…
Browse files Browse the repository at this point in the history
…ompose
  • Loading branch information
endersonmenezes committed Jan 8, 2025
1 parent 82feb51 commit b661adf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .github/workflows/build_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,12 @@ jobs:
sudo cp .env /opt/tutor/.env
echo "Done!"
- name: Send nxinx.conf file
run: |
echo "Sending nginx.conf file..."
sudo rm -f /opt/tutor/nginx.conf
sudo cp ./nginx/nginx.conf /opt/tutor/nginx.conf
- name: Send updated docker-compose-prod.yml file
run: |
echo "Sending updated docker-compose-prod.yml file..."
Expand Down
2 changes: 1 addition & 1 deletion docker-compose-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ services:
ports:
- "8000:80"
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
- ./nginx.conf:/etc/nginx/nginx.conf
- static_files:/app/static
depends_on:
- web
Expand Down

0 comments on commit b661adf

Please sign in to comment.