2020-05-13 15:37:25 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2020-05-14 13:24:32 +00:00
|
|
|
# wait for postgresql to listen
|
|
|
|
while ! pg_isready -h $(pwd)/.hydra-data/postgres -p 64444; do sleep 1; done
|
2020-05-13 15:37:25 +00:00
|
|
|
|
2020-05-14 09:49:29 +00:00
|
|
|
createdb -h $(pwd)/.hydra-data/postgres -p 64444 hydra
|
2020-05-13 15:37:25 +00:00
|
|
|
|
|
|
|
hydra-init
|
|
|
|
hydra-create-user alice --password foobar --role admin
|
|
|
|
|
2020-05-14 09:49:29 +00:00
|
|
|
touch .hydra-data/hydra.conf
|
2020-05-14 13:27:43 +00:00
|
|
|
HYDRA_CONFIG=$(pwd)/.hydra-data/hydra.conf exec hydra-dev-server --port 63333
|