fix: Fixes Kubernetes support.
This commit is contained in:
parent
cd2efa026a
commit
5a86b171ec
1 changed files with 5 additions and 2 deletions
|
@ -1,9 +1,12 @@
|
|||
#!/bin/bash
|
||||
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 "Running database migrations..."
|
||||
npx prisma migrate deploy
|
||||
echo "Starting application..."
|
||||
npm start
|
||||
npm start
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue