-
Notifications
You must be signed in to change notification settings - Fork 57
[Deployment] Heroku
Dimitrios Zorbas edited this page Apr 18, 2017
·
8 revisions
You can have a look at the demo dashboard code deployed at Heroku at https://kitto.herokuapp.com
A dashboard generated via mix kitto.new <dashboard_name>
creates all files necessary to deploy to Heroku.
Use heroku-buildpack-elixir to manage Elixir/OTP installation, mix dependencies and compilation.
heroku create --buildpack "https://github.com/HashNuke/heroku-buildpack-elixir.git"
Given you're using git for your dashboard, this command will create a
heroku
remote
Nodejs is required for the js/scss files to be compiled by webpack.
heroku buildpacks:add heroku/nodejs
More info about deploying with git: https://devcenter.heroku.com/articles/git
config :kitto,
ip: {0, 0, 0, 0},
port: {:system, "PORT"} # set by Heroku
git push heroku master
..and you're up and running!
Note If you generated your dashboard app using an installer prior to the 0.3.0 release, you also have to follow some additional steps (contributed by @cforcey).