does X for Y because Z.
- clone the repo
cd <project> && bundle
rails db:setup && rails db:migrate
bundle exec figaro install
- get
config/application.yml
values from repo admin
bin/dev # uses foreman gem to boot server + frontend
bundle exec rspec # run all tests inside spec/
bundle exec rspec spec/dir_name # run all tests inside given directory
install the Heroku CLI and run heroku login
. if repo admin has shared access to the server:
heroku git:remote -a heroku_app_name_here # you only need to do this once
git push heroku master # deploys master branch
git push heroku some_branch_name:master # deploys non-master branch
to access the Rails console on the production server:
heroku run rails console
to add or update environment variables from your local config/application.yml
file:
figaro heroku:set -e production