-
add the following to your Gemfile:
gem 'rails_12factor' end``` `gem 'figaro'`
-
run
bundle exec figaro install
-
add ENV vars to
config/application.yml
and call them fromconfig/secrets.yml
-
deploy to Heroku with the following commands:
heroku create
git push heroku master
(takes a little while)heroku run rake db:create
heroku run rake db:migrate
heroku open
-
check on your app with the following:
heroku logs -t
(tail the prod logs)heroku run bash
plusrails c
to run Rails console
Last active
February 29, 2016 23:57
-
-
Save cadyherron/19529124ddc5c0dcd617 to your computer and use it in GitHub Desktop.
How to deploy Rails app to Heroku with Figaro vars
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment