This is a project built with Elixir that uses Dynamo to serve web requests, for use on Heroku.
Resources:
- Elixir website
- Elixir getting started guide
- Elixir docs
- Dynamo source code
- Dynamo guides
- Dynamo docs
You can run Dynamo on Heroku using the third-party Elixir buildpack. Clone this repository, then from within the project directory, do the following:
-
Create the app:
$ heroku create [app name]
-
Set the custom buildpack:
$ heroku config:add BUILDPACK_URL="https://github.com/goshakkk/heroku-buildpack-elixir.git" -a YOUR_APP
-
Specify a preferred Erlang/OTP version by creating a
.preferred_otp_version
with contentsOTP_R16B
:$ echo "OTP_R16B" > .preferred_otp_version
-
Specify a preferred Elixir version by creating a
.preferred_elixir_version
with contentsmaster
:$ echo "master" > .preferred_elixir_version
-
Create a Procfile with a
web
process defined:$ echo 'web: MIX_ENV=prod mix server -p $PORT' > Procfile
-
Add and commit your changes:
$ git add Procfile .preferred_otp_version .preferred_elixir_version
$ git commit -m "Setup for Heroku"
-
Deploy!
$ git push heroku master