File tree Expand file tree Collapse file tree 3 files changed +8
-5
lines changed Expand file tree Collapse file tree 3 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 624624 export HYDRA_HOME="$(pwd)/src/"
625625 mkdir -p .hydra-data
626626 export HYDRA_DATA="$(pwd)/.hydra-data"
627- export HYDRA_DBI='dbi:Pg:dbname=hydra;host=localhost;port=64444'
627+ export LOGNAME="hydra-dev"
628+ export PGPORT=64444
629+ export PGHOST="localhost"
630+ export HYDRA_DBI="dbi:Pg:dbname=hydra;host=$PGHOST;port=$PGPORT"
628631
629632 popd >/dev/null
630633 '' ;
Original file line number Diff line number Diff line change 11#! /bin/sh
22
33# wait for postgresql to listen
4- while ! pg_isready -h $( pwd ) /.hydra-data/postgres -p 64444 ; do sleep 1; done
4+ while ! pg_isready ; do sleep 1; done
55
6- createdb -h $( pwd ) /.hydra-data/postgres -p 64444 hydra
6+ createdb hydra
77
88# create a db for the default user. Not sure why, but
99# the terminal is otherwise spammed with:
1010#
1111# FATAL: database "USERNAME" does not exist
12- createdb -h $( pwd ) /.hydra-data/postgres -p 64444 " $( whoami) " || true
12+ createdb " $( whoami) " || true
1313
1414hydra-init
1515hydra-create-user alice --password foobar --role admin
Original file line number Diff line number Diff line change 11#! /bin/sh
22
33initdb ./.hydra-data/postgres
4- exec postgres -D ./.hydra-data/postgres -k $( pwd) /.hydra-data/postgres -p 64444
4+ exec postgres -D ./.hydra-data/postgres -k $( pwd) /.hydra-data/postgres -p ${PGPORT}
You can’t perform that action at this time.
0 commit comments