Skip to content

Instantly share code, notes, and snippets.

@domenkozar
Created September 8, 2021 17:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save domenkozar/0c80fae749ba886b3140bb7c5978480d to your computer and use it in GitHub Desktop.
Save domenkozar/0c80fae749ba886b3140bb7c5978480d to your computer and use it in GitHub Desktop.
Foreman
postgresql: docker run --rm --name postgres -p 5432:5432 -e POSTGRES_PASSWORD=$POSTGRES_PASSWORD -v $PWD/nix/postgres-data:/var/lib/postgresql/data postgres:13
backend: cd backend && ghcid --command "(stack build && stack --no-install-ghc --system-ghc --nix repl --load --ghci-options=-fbyte-code --no-nix-pure cachix-server:exe:cachix-server cachix-server:lib)" --test Main.main --restart stack.yaml --restart cachix-server.cabal --restart schema.sql --setup ":set args serve dev.dhall" --warnings
frontend: cd frontend && nix-shell --run "yarn serve"
ngrok: ngrok start --all --config ngrok.yml --config ~/.ngrok2/ngrok.yml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment