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

zess: deployment #46

Merged
merged 10 commits into from
Aug 26, 2024
Prev Previous commit
Next Next commit
zess: change to docker compose
Topvennie committed Aug 22, 2024

Verified

This commit was signed with the committer’s verified signature.
FrederikBolding Frederik Bolding
commit fe182f3cbae19367060acc186cc42cdff26a10f2
12 changes: 6 additions & 6 deletions dev.sh
Original file line number Diff line number Diff line change
@@ -23,7 +23,7 @@ done
if [ "$clean" = true ]; then
rm vingo/.env || true
rm vinvoor/.env || true
docker-compose -f docker-compose.yml build
docker compose -f docker-compose.yml build
Topvennie marked this conversation as resolved.
Show resolved Hide resolved
fi


@@ -37,19 +37,19 @@ if [ ! -f vinvoor/.env ]; then
fi

# Start the docker containers
docker-compose -f docker-compose.yml up -d
docker compose -f docker-compose.yml up -d

echo "-------------------------------------"
echo "Following logs..."
echo "Press CTRL + C to stop all containers"
echo "-------------------------------------"

if [ "$backend" = true ] && [ "$frontend" = false ]; then
docker-compose -f docker-compose.yml logs -f zess-backend
docker compose -f docker-compose.yml logs -f zess-backend
elif [ "$backend" = false ] && [ "$frontend" = true ]; then
docker-compose -f docker-compose.yml logs -f zess-frontend
docker compose -f docker-compose.yml logs -f zess-frontend
else
docker-compose -f docker-compose.yml logs -f zess-backend zess-frontend
docker compose -f docker-compose.yml logs -f zess-backend zess-frontend
fi

docker-compose -f docker-compose.yml down
docker compose -f docker-compose.yml down