See directions here or use homebrew if you're on a Mac:
brew install erlang
Then install Heroku Toolbelt.
Clone this repo with git clone git://github.com/6/heroku-erlang-example.git
cd
into it, and then:
make
foreman start
This will start the web server locally at http://localhost:5000
running on heroku with Heroku's erlang buildpack
heroku create
heroku config:add BUILDPACK_URL=https://github.com/heroku/heroku-buildpack-erlang.git
Then just push it to heroku with git push heroku master