Create heroku app (just once)
-
($ heroku create)
Push master to the server
-
$ git push heroku master
Run a rake-task on the server
-
$ heroku run rake db:migrate
Run bash on the server
-
$ heroku run bash
Download db-backup from the server
-
$ heroku pg:backups capture
-
$ curl -o latest.dump `heroku pg:backups public-url`
Restor db to local db
-
$ pg_restore --verbose --clean --no-acl --no-owner -h localhost -U <myuser> -d anime_list_development latest.dump