-
Notifications
You must be signed in to change notification settings - Fork 148
Run Dashing Rails on Heroku
Pierre-Louis Gottfrois edited this page Oct 27, 2013
·
8 revisions
Setting Dashing-rails on Heroku is pretty simple:
-
Create a new app:
heroku apps:create example
-
Add RedisToGo addon to heroku's app:
heroku addons:add redistogo
-
Add PostgresSQL addon to heroku's app (this is up to you):
heroku addons:add heroku-postgresql:dev
-
Add
puma
to yourGemfile
:gem 'puma'
-
Create a new
Procfile
for you application:web: bundle exec puma -p $PORT -e $RACK_ENV -t 0:5
-
Tell Dashing-rails how to you the Heroku's redis connection by setting redis credentials in
config/initializers/dashing.rb
:config.redis_host = URI.parse(ENV["REDISTOGO_URL"]).host config.redis_port = URI.parse(ENV["REDISTOGO_URL"]).port config.redis_password = URI.parse(ENV["REDISTOGO_URL"]).password
-
Commit and Push to heroku:
git commit -m "configure dashing to work on heroku" git push heroku master
-
That's it! Visit http://your_app.herokuapp.com/dashing/dashboards
You can checkout the following application on Github running on Heroku
puma -t 0:5
lets you configure the number of threads you want puma to run on.