Operations - Gaelan/mrhs-blog GitHub Wiki

Hosting: Heroku

  • View logs: heroku logs -a mrs-photo-blog [-t]

  • Run database migrations: heroku run bin/rails db:migrate -a mrs-photo-blog

    In development, un-run migrations are fatal, in production they are ignored.

  • Run console: heroku run bin/rails c

  • Revert to an earlier version:

    1. Go to Heroku Dashboard
    2. Click Activity button
    3. Select the commit you wish to revert to (note that this does not change the state of the repository on GitHub, the next time a git push is done to the master branch the running version will advance to that commit).

    Note that it also appears to be possible, on the Deploy pane, to choose a specific branch to use in production. This has been tested.

Authentication Providers

Database

The database is PostgreSQL running at Heroku.

File Store: Amazon S3

Source Code / Configuration Management: GitHub