Heroku
Restore database from dump
- Verify account:
https://api.heroku.com/account
- Enable backups:
heroku addons:add pgbackups:basic
- Import data:
heroku pgbackups:restore DATABASE http://public.host/file.sql
Install SQL Console
heroku plugins:install git://github.com/ddollar/heroku-sql-console.git
Run with heroku sql
.
Heroku quickstart
- heroku auth:login
- heroku create --remote staging
- git config heroku.remote staging
- get AWS keys: https://portal.aws.amazon.com/gp/aws/securityCredentials
- heroku config:set S3_BUCKET_NAME=bucket S3_HOST_NAME=host AWS_ACCESS_KEY_ID=key AWS_SECRET_ACCESS_KEY=secret
- git push staging master
- populate the database:
- heroku run rake db:migrate
- OR
- heroku addons:add pgbackups:basic
- heroku pgbackups:restore DATABASE 'http://remote/file.dump'
- heroku open
heroku logs --tail
heroku domains:add example.com
heroku run console
Deploy static site
heroku create --buildpack git://git.source.metacode.biz/heroku-buildpack-static.git
Rename an app
heroku apps:rename newname
Clear the database
heroku pg:reset DATABASE
Disable app
heroku ps:scale web=2