Update postgres, .gitignore

This commit is contained in:
asonix 2024-10-09 18:05:31 -05:00
parent 1e38840a74
commit e27a39490c
3 changed files with 6 additions and 4 deletions

2
.gitignore vendored
View file

@ -77,3 +77,5 @@ docker-compose.override.yml
/.envrc
/.direnv
/config/master.key

View file

@ -15,7 +15,7 @@
overlays = [
(final: prev: {
nodejs = prev.nodejs_20;
postgresql = prev.postgresql_15;
postgresql = prev.postgresql_16;
ruby = (prev.ruby_3_3.withPackages (ps: with ps; [
psych
]));

View file

@ -2,8 +2,8 @@
set -e
if ! pg_ctl -D ./postgres/15 status; then
pg_ctl -D ./postgres/15 -l ./postgres/postgresql.log start
if ! pg_ctl -D ./postgres/16 status; then
pg_ctl -D ./postgres/16 -l ./postgres/postgresql.log start
fi
redis-server > ./redis/redis.log 2> ./redis/redis.err &
@ -18,4 +18,4 @@ for pid in $(jobs -p); do
kill -9 $pid
done
pg_ctl -D ./postgres/15 stop
pg_ctl -D ./postgres/16 stop