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

Commit

Permalink
Merge pull request #440 from KavyaKinjalk/main
Browse files Browse the repository at this point in the history
Update install.docker.new.sh
  • Loading branch information
birdup000 authored Feb 20, 2023
2 parents eed64c9 + 77a6ffd commit 90f08e3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion install.docker.new.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,18 @@ then
echo "TG_API_ID=$TG_API_ID" >> docker/.env
echo "TG_API_HASH=$TG_API_HASH" >> docker/.env
echo "ADMIN_USERNAME=$ADMIN_USERNAME" >> docker/.env
export DATABASE_URL=postgresql://postgres:$DB_PASSWORD@db:5432/teledrive
#export DATABASE_URL=postgresql://postgres:$DB_PASSWORD@db:5432/teledrive
echo "DB_PASSWORD=$DB_PASSWORD" >> docker/.env

cd docker
docker compose build teledrive
docker compose up -d
sleep 2
docker compose exec teledrive yarn workspace api prisma migrate deploy

# Insert the database password into the database
docker compose exec db psql -U postgres -d teledrive -c "INSERT INTO secrets (name, value) VALUES ('DB_PASSWORD', '$DB_PASSWORD');"

else
git pull origin main

Expand Down

1 comment on commit 90f08e3

@vercel
Copy link

@vercel vercel bot commented on 90f08e3 Feb 20, 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.