Merge branch 'asonix/changes' into asonix/downstream
This commit is contained in:
commit
c499a6798c
|
@ -29,10 +29,12 @@
|
|||
devShell = with pkgs; mkShell {
|
||||
nativeBuildInputs = [
|
||||
icu
|
||||
imagemagick
|
||||
libidn
|
||||
libz
|
||||
nodejs
|
||||
postgresql
|
||||
redis
|
||||
ruby
|
||||
yarn
|
||||
];
|
||||
|
|
21
run-services.sh
Executable file
21
run-services.sh
Executable 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
|
Loading…
Reference in a new issue