Merge branch 'asonix/changes' into asonix/downstream

This commit is contained in:
asonix 2023-09-21 18:26:21 -05:00
commit c499a6798c
2 changed files with 23 additions and 0 deletions

View file

@ -29,10 +29,12 @@
devShell = with pkgs; mkShell { devShell = with pkgs; mkShell {
nativeBuildInputs = [ nativeBuildInputs = [
icu icu
imagemagick
libidn libidn
libz libz
nodejs nodejs
postgresql postgresql
redis
ruby ruby
yarn yarn
]; ];

21
run-services.sh Executable file
View file

@ -0,0 +1,21 @@
#!/usr/bin/env bash
set -e
if ! pg_ctl -D ./postgres/15 status; then
pg_ctl -D ./postgres/15 -l ./postgres/postgresql.log start
fi
redis-server > ./redis/redis.log 2> ./redis/redis.err &
echo
echo "Launched postgres and redis"
echo "Hit [enter] to stop services"
read -e
for pid in $(jobs -p); do
kill -9 $pid
done
pg_ctl -D ./postgres/15 stop