use default db postgres
ci / build (push) Has been cancelled
Details
ci / build (push) Has been cancelled
Details
This commit is contained in:
parent
ebe65e067d
commit
00530d757e
2
Tiltfile
2
Tiltfile
|
@ -200,7 +200,7 @@ cmd_button('postgrest:restore',
|
||||||
)
|
)
|
||||||
|
|
||||||
cmd_button('postgrest:migrate',
|
cmd_button('postgrest:migrate',
|
||||||
argv=[''],
|
argv=['./scripts/postgrest-migrations.sh'],
|
||||||
resource='postgrest',
|
resource='postgrest',
|
||||||
icon_name='directions_run',
|
icon_name='directions_run',
|
||||||
text='Run migrations',
|
text='Run migrations',
|
||||||
|
|
|
@ -2,11 +2,11 @@
|
||||||
|
|
||||||
|
|
||||||
if [ -z $POSTGRES_PASSWORD ]; then
|
if [ -z $POSTGRES_PASSWORD ]; then
|
||||||
echo "POSTGRES_PASSWORD was missing in env. Are you executing this script via Tilt? (that is the intended method)"
|
echo "POSTGRES_PASSWORD was missing in env. In development environment, runing this command via the UI button in Tilt is recommended as it sets the env var for you."
|
||||||
exit 5
|
exit 5
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
kubectl -n futureporn run postgrest-migrations --image=https://gitea.futureporn.net/futureporn/migrations:latest --env PGPASSWORD=${POSTGRES_PASSWORD}
|
kubectl -n futureporn run postgrest-migrations -i --rm=true --image=gitea.futureporn.net/futureporn/migrations:latest --env=DATABASE_PASSWORD=${POSTGRES_PASSWORD}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,7 @@ async function main() {
|
||||||
|
|
||||||
// Default: "postgres"
|
// Default: "postgres"
|
||||||
// Used when checking/creating "database-name"
|
// Used when checking/creating "database-name"
|
||||||
defaultDatabase: "postgrest"
|
defaultDatabase: "postgres"
|
||||||
}
|
}
|
||||||
|
|
||||||
await migrate(dbConfig, path.join(__dirname, "./migrations/"))
|
await migrate(dbConfig, path.join(__dirname, "./migrations/"))
|
||||||
|
|
Loading…
Reference in New Issue