Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update: make docker autostart & forece recreate on deploy #59

Merged
merged 1 commit into from
Feb 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ jobs:
script: |
cd image-optimizer
git pull origin master
docker compose -f docker-compose.yml -f docker-compose.prod.yml up -d --no-deps --build
docker compose -f docker-compose.yml -f docker-compose.prod.yml up -d --no-deps --build --force-recreate
1 change: 1 addition & 0 deletions docker-compose.prod.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
version: "3"
services:
node:
restart: always
command: bash -c "npm install && npm run build && npm run start:prod"
Loading