diff --git a/flake.nix b/flake.nix index 2015df401..cdfa26a82 100644 --- a/flake.nix +++ b/flake.nix @@ -29,10 +29,12 @@ devShell = with pkgs; mkShell { nativeBuildInputs = [ icu + imagemagick libidn libz nodejs postgresql + redis ruby yarn ]; diff --git a/run-services.sh b/run-services.sh new file mode 100755 index 000000000..f100537a8 --- /dev/null +++ b/run-services.sh @@ -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