Skip to content

Commit

Permalink
create local env file for pg
Browse files Browse the repository at this point in the history
  • Loading branch information
mxfactorial committed Aug 13, 2024
1 parent 1358c73 commit 8bf279b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/enable-pg-notice.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ ENV_FILE_NAME=$(yq '.env_var.set.ENV_FILE_NAME.default' $PROJECT_CONF)
MIGRATIONS_DIR_PATH=./migrations
ENV_FILE="$MIGRATIONS_DIR_PATH/$ENV_FILE_NAME"

make -C $MIGRATIONS_DIR_PATH env ENV=local

source $ENV_FILE

until pg_isready -h $PGHOST -U $PGUSER -d $PGDATABASE; do sleep 1; done
Expand Down

0 comments on commit 8bf279b

Please sign in to comment.