Check out the example app elm-todomvc. In brief:
ELM_COMPILE(command used to compile your Elm sources) in
heroku buildpacks:add https://github.com/srid/heroku-buildpack-elm
heroku buildpacks:add https://github.com/hone/heroku-buildpack-static
git commit -am "empty" && git push heroku master && heroku ps:scale web=1
The buildpack aims to use the latest version of Elm by default. To specify an alternative Elm version, create this file in your repo:
$ cat .buildpack.env export ELM_VERSION=0.15 ^D
By default, this buildpack will save and reuse intermediate build objects between deploys. If you want to perform a clean build on every deploy, you may specify that in your .buildpack.env file:
$ cat .buildpack.env export CACHE_BUILD_OBJECTS=false ^D
Binaries are generated using docker, and uploaded to s3.
# To generate docker image containing the binaries make binaries # To upload to s3 aws configure # creates ~/.aws/... make upload
ELM_VERSIONenv var in Dockerfile
make binaries upload
ELM_VERSIONenv var in
Feel free to ask in Github Issues.
Copy the snippet above into CLI.