Address PR comments:

- scripts -> foreman
- drop runHydra
- drop devShell
- move postgresql to buildInputs
This commit is contained in:
Tobias Pflug
2020-05-15 13:48:21 +02:00
parent fc0eb02ffe
commit 31262f14fb
8 changed files with 11 additions and 33 deletions

12
foreman/start-hydra.sh Executable file
View File

@ -0,0 +1,12 @@
#!/bin/sh
# wait for postgresql to listen
while ! pg_isready -h $(pwd)/.hydra-data/postgres -p 64444; do sleep 1; done
createdb -h $(pwd)/.hydra-data/postgres -p 64444 hydra
hydra-init
hydra-create-user alice --password foobar --role admin
touch .hydra-data/hydra.conf
HYDRA_CONFIG=$(pwd)/.hydra-data/hydra.conf exec hydra-dev-server --port 63333