Only recreate the database on the first run
This commit is contained in:
parent
91e8abf224
commit
ad63122878
|
@ -0,0 +1 @@
|
||||||
|
databases
|
|
@ -23,7 +23,10 @@ in mkShell {
|
||||||
pg_ctl start -o "--unix_socket_directories=${data_dir} --listen_addresses='''"
|
pg_ctl start -o "--unix_socket_directories=${data_dir} --listen_addresses='''"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
psql -d postgres -f ${sql_file}
|
if [ ! -d ${data_dir} ]; then
|
||||||
|
psql -d postgres -f ${sql_file}
|
||||||
|
fi
|
||||||
|
|
||||||
alias psql='psql -d postgres'
|
alias psql='psql -d postgres'
|
||||||
alias nuke='rm -rf ${data_dir}'
|
alias nuke='rm -rf ${data_dir}'
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue