Haskell Stack support for Heroku
Go to file
2016-11-18 08:57:01 -08:00
bin Preserve timestamps when copying over .stack-work 2016-09-17 09:24:24 -07:00
LICENSE Add a license. 2016-11-18 08:57:01 -08:00
README.md Fix spelling. 2016-09-07 18:08:17 -04:00

Heroku Buildpack for Stack

Heroku buildpack for Stack. Based on the excellent heroku-buildpack-ghc

Usage

Create an app with this buildpack:

$ heroku create --buildpack https://github.com/mfine/heroku-buildpack-stack.git

Set this buildpack on an existing app:

$ heroku buildpacks:set https://github.com/mfine/heroku-buildpack-stack

Templating stack.yaml

To avoid committing secrets into stack.yaml for access to private repos, an app's config vars values can be substituted for tags enclosed in double brackets. For example, given a stack.yaml containing:

packages:
-location:
    git: https://mfine:{{GITPASS}}@github.com/mfine/heroku-buildpack-stack.git

and an application with config vars:

$ heroku config -app calm-storm-51595
=== murmuring-beyond-51595 Config Vars
GITPASS: abc123
$

before compilation, the stack.yaml will be substituted as follows:

packages:
-location:
    git: https://mfine:abc123@github.com/mfine/heroku-buildpack-stack.git