-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
consistently use
docker compose
instead of docker-compose
everywhere
- Loading branch information
1 parent
504b1f5
commit eb2ff09
Showing
5 changed files
with
42 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
#!/bin/sh | ||
# Always pull from master? What if staging should deploy 'dev' branch? | ||
git pull origin master; | ||
docker-compose pull auth push; | ||
docker compose pull auth push; | ||
# Accept containers as params. Supports starting only 'app db' f.x. | ||
docker-compose build && docker-compose up -d $@ | ||
docker compose build && docker compose up -d $@ | ||
|
||
# Do we want to auto migrate? | ||
# For now, we only check if migration is needed | ||
docker-compose exec app bin/rails db:migrate:status | ||
#docker-compose exec app bin/rails db:migrate | ||
docker compose exec app bin/rails db:migrate:status | ||
#docker compose exec app bin/rails db:migrate | ||
|
||
echo $(date) $(git rev-parse HEAD) >> deploy_history.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters