In this post we will deploy our Snap app to Heroku.
First, we need to put a
Procfile in the root of our
project; Save this as
If you’ve been following along and haven’t yet put the code
into version control, now is the time to do that by running
git add and
git commit -m "message".
This command will create a new Heroku app with a Haskell buildpack. You can find more information on the buildpack here
note: You can now deploy the app to Heroku, but you will get an error about connecting to PostgreSQL
At this point we have two basic choices: We can run
PostgreSQL as a Heroku extension or we can host PostgreSQL
somewhere else. For this example, we'll hosting elsewhere.
devel.cfg looks like this:
The final option is to just host PostgreSQL somewhere other than Heroku and modify the config file to point there.