mirror of
https://github.com/bonfire-networks/bonfire-app.git
synced 2024-05-06 03:08:45 +00:00
fix: add env vars on nix for postgres
This commit is contained in:
parent
3a60d80ea8
commit
f9e594ae24
11
flake.nix
11
flake.nix
|
@ -124,10 +124,13 @@
|
|||
mix local.rebar --if-missing rebar ${rebar}/bin/rebar;
|
||||
|
||||
export PGDATA=$PWD/db
|
||||
export PGHOST=$PGDATA
|
||||
export PGUSERNAME=$POSTGRES_USER
|
||||
export PGPASS=$POSTGRES_PASSWORD
|
||||
export PGDATABASE=$POSTGRES_DB
|
||||
export PGHOST=$PWD/db
|
||||
export PGUSERNAME=${props.PGUSERNAME}
|
||||
export PGPASS=${props.PGPASS}
|
||||
export PGDATABASE=${props.PGDATABASE}
|
||||
export POSTGRES_USER=${props.PGUSERNAME}
|
||||
export POSTGRES_PASSWORD=${props.PGPASS}
|
||||
export POSTGRES_DB=${props.PGDATABASE}
|
||||
if [[ ! -d $PGDATA ]]; then
|
||||
mkdir $PGDATA
|
||||
# comment out if not using CoW fs
|
||||
|
|
Loading…
Reference in a new issue