-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
496e9d2
commit 8d20626
Showing
1 changed file
with
9 additions
and
16 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,11 @@ | ||
#!usr/bin/env bash | ||
#!/usr/bin/env bash | ||
|
||
if [ $1 = "dev" ]; then | ||
docker pull pierrecastro/healthcheck-frontend:dev | ||
docker pull pierrecastro/healthcheck-backend:dev | ||
docker compose --env-file .env.dev -f docker-compose.yml down -d | ||
docker compose --env-file .env.dev -f docker-compose.yml up -d | ||
exit 0 | ||
elif [ $1 = "prod" ]; then | ||
docker pull pierrecastro/healthcheck-frontend:prod | ||
docker pull pierrecastro/healthcheck-backend:prod | ||
docker compose --env-file .env.prod -f docker-compose.yml down -d | ||
docker compose --env-file .env.prod -f docker-compose.yml up -d | ||
exit 0 | ||
fi | ||
docker pull pierrecastro/healthcheck-frontend:dev | ||
docker pull pierrecastro/healthcheck-backend:dev | ||
docker pull pierrecastro/healthcheck-frontend:prod | ||
docker pull pierrecastro/healthcheck-backend:prod | ||
|
||
echo "Invalid argument. Please use 'dev' or 'prod'." >&2 | ||
exit 1 | ||
docker compose --env-file .env.dev -f docker-compose.yml down -d | ||
docker compose --env-file .env.prod -f docker-compose.yml down -d | ||
docker compose --env-file .env.dev -f docker-compose.yml up -d | ||
docker compose --env-file .env.prod -f docker-compose.yml up -d |