I hereby claim:
- I am taylor01 on github.
- I am taylor01 (https://keybase.io/taylor01) on keybase.
- I have a public key whose fingerprint is 8079 6CD5 2DAE C450 1D7C 8E49 9EA5 3BD2 AFAF 4AE9
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| language: ruby | |
| rvm: | |
| - 2.0.0-p247 | |
| script: bundle exec middleman build | |
| deploy: | |
| provider: heroku | |
| api_key: | |
| secure: <secure heroku auth key> |
| 1. Extended in VMWare first | |
| 2. Boot VM from Unbuntu live CD. Make sure to use Desktop version and not Server | |
| 3. Launch GParted from the live CD. | |
| 4. Re-arrange/extend partitions. | |
| 5. Reboot VM. |
| db:create creates the database for the current env | |
| db:create:all creates the databases for all envs | |
| db:drop drops the database for the current env | |
| db:drop:all drops the databases for all envs | |
| db:migrate runs migrations for the current env that have not run yet | |
| db:migrate:up runs one specific migration | |
| db:migrate:down rolls back one specific migration | |
| db:migrate:status shows current migration status | |
| db:migrate:rollback rolls back the last migration | |
| db:forward advances the current schema version to the next one |
| #Deploy and rollback on Heroku in staging and production | |
| task :deploy_staging => ['deploy:set_staging_app', 'deploy:push', 'deploy:restart', 'deploy:tag'] | |
| task :deploy_production => ['deploy:set_production_app', 'deploy:push', 'deploy:restart', 'deploy:tag'] | |
| namespace :deploy do | |
| PRODUCTION_APP = 'YOUR_PRODUCTION_APP_NAME_ON_HEROKU' | |
| STAGING_APP = 'YOUR_STAGING_APP_NAME_ON_HEROKU' | |
| task :staging_migrations => [:set_staging_app, :push, :off, :migrate, :restart, :on, :tag] | |
| task :staging_rollback => [:set_staging_app, :off, :push_previous, :restart, :on] |