Messing about with Elixir, Phoenix, React and Heroku deployment.
http://bit.ly/phoenix-getting-started
All commands in the following steps should be issued from the application root directory.
git init
heroku create <your app name for heroku>
Basically, Elixir is not a core language at this time so it is necessary to use an Elixir build-pack to deploy an Elixir app to Heroku. More information can be found here, http://bit.ly/heroku-buildpack-api .
(Credit to, https://github.com/HashNuke/heroku-buildpack-elixir.git)
heroku buildpack:set https://github.com/HashNuke/heroku-buildpack-elixir.git
Note: The setting of the build-pack can occur when creating the Heroku app thus,
heroku create <your app name for heroku> --buildpack https://github.com/HashNuke/heroku-buildpack-elixir.git
This is an alternative approach with the same outcome.
cat >> elixir_buildpack.config <<!
erlang_version=17.2
elixir_version=1.0.3
always_rebuild=true
!
heroku config:set MIX_ENV=prod
web: mix compile.protocols && elixir -pa _build/prod/consolidated -S mix phoenix.server
heroku local
Note: Needs the 'foreman' ruby gem to be installed.
git commit -am "committed most recent changes"
git push heroku master