Skip to content

Instantly share code, notes, and snippets.

View mortenbagai's full-sized avatar

Morten Bagai mortenbagai

View GitHub Profile
$ bin/migrate newfisk david.kjelkerud@gmail.com
** App Name newfisk
** App ID 55811
** Pulling code from S3
** Untarring code tp /tmp/hg933960/
** Git commiting all open changes in the garden working tree
$ git add .
$ git commit -m 'Heroku Garden Export' -a
** Pulling Data From S3 -> herokugarden.com/app55811/
** Creating temp local postgres database and user
$ heroku db:push postgres://hg878603:hg878603@127.0.0.1/hg878603 --app rubycalcsnips8
/opt/local/lib/ruby/gems/1.8/gems/rush-0.6.2/lib/rush/local.rb:326:in `bash': Identity added: /Users/morten/code/garden/.ssh/id_rsa (/Users/morten/code/garden/.ssh/id_rsa) (Rush::BashFailed)
Install the Taps gem to use db commands. On most systems this will be:
sudo gem install taps
from /opt/local/lib/ruby/gems/1.8/gems/rush-0.6.2/lib/rush/box.rb:75:in `bash'
from /opt/local/lib/ruby/gems/1.8/gems/rush-0.6.2/lib/rush.rb:34:in `bash'
from /Users/morten/code/garden/lib/garden_app.rb:76:in `migrate_bash'
from /Users/morten/code/garden/lib/garden_app.rb:66:in `local_to_heroku'
from /Users/morten/code/garden/lib/garden_app.rb:29:in `migrate'
from bin/migrate:32
$ bin/migrate mypewepa marcric@gmail.com
** App Name mypewepa
** App ID 50386
** Pulling code from S3
** Untarring code tp /tmp/hg505041/
** Git commiting all open changes in the garden working tree
$ git add .
/opt/local/lib/ruby/gems/1.8/gems/rush-0.6.2/lib/rush/local.rb:326:in `bash': fatal: This operation must be run in a work tree (Rush::BashFailed)
from /opt/local/lib/ruby/gems/1.8/gems/rush-0.6.2/lib/rush/box.rb:75:in `bash'
from /opt/local/lib/ruby/gems/1.8/gems/rush-0.6.2/lib/rush/dir.rb:125:in `bash'
$ bin/migrate on5wis-books on5wis@mac.com
** App Name on5wis-books
** App ID 53919
** Pulling code from S3
** Untarring code tp /tmp/hg1016206/
** Git commiting all open changes in the garden working tree
$ rm -rf `find . -type d -name .git`
$ rm data.tar.gz
$ git init
$ git add .
rds-authorize-db-security-group-ingress default --ec2-security- group-name MyEC2ApplicationServers --ec2-security-group-owner-id
111111111111
$ heroku console --app eftplus
Ruby console for eftplus.heroku.com
>> Transaction.all.size
Couldn't run console command
Server broke connection
tubbs:~ morten$ heroku console --app eftplus
Ruby console for eftplus.heroku.com
>> Transaction.all.size
Couldn't run console command
Server broke connection