From 621055e2dfd8dc47986b4a0cff4de7e37cbf421a Mon Sep 17 00:00:00 2001 From: Daniel Barlow Date: Wed, 27 Nov 2024 17:48:58 +0000 Subject: [PATCH] use overmind to start everything --- Procfile | 5 +++++ default.nix | 2 ++ 2 files changed, 7 insertions(+) create mode 100644 Procfile diff --git a/Procfile b/Procfile new file mode 100644 index 0000000..e4dd369 --- /dev/null +++ b/Procfile @@ -0,0 +1,5 @@ +db: trap 'docker stop souplesse-postgres' EXIT > /dev/null; docker run --rm -p 5432:5432 --name souplesse-postgres -e POSTGRES_USER=souplesse -e POSTGRES_PASSWORD=secret postgres +psql: nix-shell -p postgresql --run "psql -h localhost -U souplesse -p 5432" +build: git ls-files | entr make +elm-repl: elm repl +serve: cabal run diff --git a/default.nix b/default.nix index daae561..2ff445d 100644 --- a/default.nix +++ b/default.nix @@ -11,9 +11,11 @@ let ]); }; in haskellEnv.overrideAttrs(o: { + OVERMIND_AUTO_RESTART = "all"; buildInputs = o.buildInputs ++ (with pkgs.elmPackages; [ pkgs.entr + pkgs.overmind elm elm-format elm-optimize-level-2