Skip to content

Commit

Permalink
wait until db is ready before creating user
Browse files Browse the repository at this point in the history
  • Loading branch information
manveru committed Sep 16, 2021
1 parent b35d688 commit 85d0f6a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions deploy.cue
Expand Up @@ -17,7 +17,7 @@ _defaultJobs: {
wormhole: jobDef.#Wormhole
}

#vitOpsRev: "7304ec2ba47e775a4c4fbe88a31a9395b1bcf3b5"
#vitOpsRev: "b35d688b16a92c88b6a2e809f02390f94b4d6fd6"

#flakes: {
devbox: "github:input-output-hk/vit-ops?rev=\(#vitOpsRev)#devbox-entrypoint"
Expand All @@ -40,7 +40,7 @@ Namespace: [Name=_]: {
#database: artifacts[Name].database
#domain: string
#fqdn: fqdn
#vitOpsRev: =~"^\(hex){40}$" | *"7304ec2ba47e775a4c4fbe88a31a9395b1bcf3b5"
#vitOpsRev: =~"^\(hex){40}$" | *"b35d688b16a92c88b6a2e809f02390f94b4d6fd6"
#dbSyncRev: =~"^\(hex){40}$" | *"af6f4d31d137388aa59bae10c2fa79c219ce433d"
datacenters: list.MinItems(1) & [...datacenter] | *[ "eu-central-1", "us-east-2", "eu-west-1"]
#version: string | *"3.1"
Expand Down
2 changes: 1 addition & 1 deletion pkgs/postgres-entrypoint.nix
Expand Up @@ -38,7 +38,7 @@ let
ln -sfn "${configs.postgres}" "$PGDATA/postgresql.conf"
(
pg_isready --timeout 30 --host /alloc
until pg_isready --timeout 30 --host /alloc; do sleep 1; done
createuser --createdb --superuser cexplorer
) &
Expand Down

0 comments on commit 85d0f6a

Please sign in to comment.