Operations - Gaelan/mrhs-blog GitHub Wiki
Heroku
Hosting:-
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:
- 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 push
is done to themaster
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.