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-blogIn development, un-run migrations are fatal, in production they are ignored.
-
Run console:
heroku run bin/rails c -
Revert to an earlier version:
- Go to Heroku Dashboard
- Click Activity button
- 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 pushis done to themasterbranch 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.