Simple web hello world using Cowboy + Elixir (Bonus Heroku)
Elixir
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
.gitignore
LICENSE
Procfile
README.md
mix.exs

README.md

Elixir + Cowboy Hello World (Heroku)

Simple web hello world using Cowboy

Dependecies:

  • elixir: v1.1.1
  • cowboy: v1.0.0

Runing

mix deps.get && mix deps.compile && mix run --no-halt

Then access http://localhost:5000

Your elixir first deploy on Heroku

  • First install Heroku cli

Instructions here: https://devcenter.heroku.com/articles/heroku-command

  • Prepare the environment
 heroku create --buildpack "https://github.com/cristianoliveira/heroku-buildpack-elixir.git"
  • Log into Heroku
heroku login
  • Add Heroku as remote

The app name you can get on dashboard.

heroku git:remote -a <your-app-name>
  • Finally deploy
git push heroku master