First, you need to have a working Elixir environment:
http://elixir-lang.org/install.html
You must specify the listening port using the PORT
environment variable
mix deps.get
mix compile
PORT=4000 mix run --no-halt
Create an application on https://scalingo.com, then:
git remote add scalingo [email protected]:<name_of_your_app>.git
Set the BUILDPACK_URL
environement variable to https://github.com/HashNuke/heroku-buildpack-elixir.git
.
You can do it using the web dashboard, select your application, go to the Environment
tab and add :
BUILDPACK_URL=https://github.com/HashNuke/heroku-buildpack-elixir.git
If you want to do it using the scalingo cli interface juste type :
scalingo -a <name_of_your_app> env-set BUILDPACK_URL=https://github.com/HashNuke/heroku-buildpack-elixir.git
Next you'll need to push it to scalingo :
git push scalingo master
And that's it!
The application is running at this url: http://sample-elixir-plug.scalingo.io