Skip to content

Latest commit

 

History

History
37 lines (23 loc) · 875 Bytes

README.md

File metadata and controls

37 lines (23 loc) · 875 Bytes

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