-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: implement Rust to the dev environment (#44)
- Loading branch information
Showing
3 changed files
with
31 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,21 @@ | ||
#!/bin/bash | ||
|
||
docker rm ifhany_db; docker-compose -f docker-compose.yml -f config/docker-compose_dev.yml up --build --remove-orphans | ||
docker rm ifhany_db; docker compose -f docker-compose.yml -f config/docker-compose_dev.yml up -d | ||
|
||
echo "Starting dev mode"; | ||
|
||
STARTED=false | ||
TRIES=1 | ||
while [ $STARTED = false ]; do | ||
sleep 1; | ||
|
||
echo "Waiting for dev mode to start... ($TRIES)"; | ||
|
||
if docker ps | grep -q ifhany_app; then | ||
STARTED=true; | ||
fi | ||
|
||
TRIES=$((TRIES + 1)) | ||
done | ||
|
||
dockersh ifhany_app |
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