Skip to content

bradparker/haskell-on-heroku

Repository files navigation

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

About

Minimal example of deploying a Nix'd Haskell App to Heroku using the container registry

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published