Skip to content

heroku commands

Naoki Saruta edited this page Oct 21, 2018 · 10 revisions

deploy

setting for deploying to Heroku

These commands are required only once when you haven't set Heroku as a remote repository.

$ git remote add Heroku https://git.heroku.com/task-driver.git
$ git remote -v

before deploying

If you have changed asset files, you should use the following command before you deploy to Heroku:

$ docker-compose run web rails assets:precompile RAILS_ENV=production

deploy to Heroku

After you merged your changes into develop and master branches, push your changes to Heroku at master branch.

$ git push Heroku

after deploying

if you have changed database's table structure

$ Heroku run rails db:migrate #migration after changed database setting