Skip to content

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

Notifications You must be signed in to change notification settings

bradparker/haskell-on-heroku

Folders and files

NameName
Last commit message
Last commit date

Latest commit

4e29631 · Mar 24, 2020

History

10 Commits
Feb 16, 2020
Feb 16, 2020
Feb 17, 2020
Feb 16, 2020
Feb 17, 2020
Mar 23, 2020
Feb 16, 2020
Feb 17, 2020
Feb 17, 2020
Feb 16, 2020

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