fix: Fixes Kubernetes support.

This commit is contained in:
Tera 2024-09-29 12:32:08 +00:00 committed by GitHub
parent cd2efa026a
commit 5a86b171ec
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,6 +1,9 @@
#!/bin/bash #!/bin/bash
export NODE_ENV="production" export NODE_ENV="production"
export DATABASE_URL="postgresql://$POSTGRES_USERNAME:$POSTGRES_PASSWORD@nextnet-postgres:5432/$POSTGRES_DB?schema=nextnet"
if [[ "$DATABASE_URL" == "" ]]; then
export DATABASE_URL="postgresql://$POSTGRES_USERNAME:$POSTGRES_PASSWORD@nextnet-postgres:5432/$POSTGRES_DB?schema=nextnet"
fi
echo "Welcome to NextNet." echo "Welcome to NextNet."
echo "Running database migrations..." echo "Running database migrations..."