Skip to content
This repository has been archived by the owner on Apr 23, 2024. It is now read-only.

Commit

Permalink
Update install.docker.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
birdup000 authored Jan 14, 2023
1 parent 6c7ef8f commit 6388001
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions install.docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@

set -e

echo "Node Version: $(git --version)"
echo "cURL Version: $(docker -v)"
echo "cURL Version: $(docker-compose -v)"
echo "Node Version: $(node -v)"
echo "cURL Version: $(curl --version | head -n 1)"
echo "Docker Version: $(docker -v)"
echo "Docker Compose Version: $(docker-compose -v)"

if [ ! -f docker/.env ]
then
Expand All @@ -31,9 +32,10 @@ then
echo "DB_PASSWORD=$DB_PASSWORD" >> docker/.env

cd docker
docker-compose build teledrive
docker-compose up -d
sleep 2
docker-compose up -d
docker-compose exec teledrive yarn workspace api prisma migrate deploy
else
git reset --hard
git clean -f
Expand All @@ -46,6 +48,6 @@ else
docker-compose up --build --force-recreate -d
sleep 2
docker-compose up -d

docker-compose exec teledrive yarn workspace api prisma migrate deploy
docker image prune -f
fi

1 comment on commit 6388001

@vercel
Copy link

@vercel vercel bot commented on 6388001 Jan 14, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.