Skip to content
Minimal example of deploying a Nix'd Haskell App to Heroku using the container registry
Haskell Nix Shell
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
Main.hs
README.md
Setup.hs
default.nix
deploy
haskell-on-heroku.cabal
nixpkgs.nix
release.nix
screenie.png

README.md

Haskell on Heroku

Development

Ensure you have Nix installed and run:

$ nix-shell -A env --command "runhaskell Main.hs"

You should now have a pretty great web site running. Point a web browser at http://localhost:8000/hello/world to see it.

Deployment

  1. Create a new Heroku App.

  2. Ensure you have Docker installed and running.

  3. Log into the heroku cli and container registry.

$ nix-shell -p heroku
$ heroku login
$ heroku container:login
  1. Run the deploy script with your Heroku App name.
$ ./deploy infinite-anchorage-09330
  1. Open a browser and see it in action.

https://infinite-anchorage-09330.herokuapp.com/hello/world

An example

You can’t perform that action at this time.