Which build tool to use is automatically detected. Rebar is currently the default. If either
rebar.lock are present, Rebar3 will be used.
$ heroku config:add BUILDPACK_URL="https://github.com/yycking/heroku-buildpack-erlang.git" -a YOUR_APP
$ heroku create --buildpack "https://github.com/yycking/heroku-buildpack-erlang.git"
The Erlang/OTP release version that will be used to build and run your application is now sourced from a dotfile called
.preferred_otp_version. It needs to be the release or tag name from the http://github.com/erlang/otp repository.
To select the version for your app:
$ echo OTP-22.0 > .preferred_otp_version $ git commit -m "Select 22.0 as preferred OTP version" .preferred_otp_version
$ git push heroku master
You may need to write a new commit and push if your code was already up to date.
NOTE: You need to have either an ebin/ directory or rebar.config checked into Git in order for Heroku to identify this project as an Erlang app it can build.
Copy the snippet above into CLI.