mirror of
https://github.com/bonfire-networks/bonfire-app.git
synced 2024-05-15 07:32:42 +00:00
style: change name from pg to db for nix just cmds
This commit is contained in:
parent
a39cd3202b
commit
81493e6e7d
4
justfile
4
justfile
|
@ -560,10 +560,10 @@ secrets:
|
|||
@cd lib/mix/tasks/secrets/ && mix escript.build && ./secrets 128 3
|
||||
|
||||
# Start or stop nix postgres server
|
||||
@nix-pg pg_cmd:
|
||||
@nix-db pg_cmd:
|
||||
pg_ctl -D ${PGDATA} -l ${PGDATA}/all.log -o "--unix_socket_directories='${PGDATA}'" $pg_cmd
|
||||
|
||||
# Initialize postgres database. Only need to run the first time!
|
||||
nix-pg-init: (nix-pg "start")
|
||||
nix-db-init: (nix-db "start")
|
||||
createdb ${PGDATABASE}
|
||||
createuser -dlsw ${PGUSERNAME}
|
||||
|
|
Loading…
Reference in a new issue