This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rds-authorize-db-security-group-ingress default --ec2-security- group-name MyEC2ApplicationServers --ec2-security-group-owner-id | |
111111111111 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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 . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ tar --help | |
tar(bsdtar): manipulate archive files | |
First option must be a mode specifier: | |
-c Create -r Add/Replace -t List -u Update -x Extract | |
Common Options: | |
-b # Use # 512-byte records per I/O block | |
-f <filename> Location of archive | |
-v Verbose | |
-w Interactive | |
Create: tar -c [options] [<file> | <dir> | @<archive> | -C <dir> ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tubbs:garden morten$ bin/migrate newfisk david.kjelkerud@gmail.com | |
** App Name newfisk | |
** App ID 1111 | |
** Pulling code from S3 | |
** Untarring code tp /tmp/hg437226/ | |
tar: Option --get is not supported | |
Usage: | |
List: tar -tf <archive-filename> | |
Extract: tar -xf <archive-filename> | |
Create: tar -cf <archive-filename> [filenames...] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bin/migrate newfisk david.kjelkerud@gmail.com | |
Failed to get garden app 'newfisk' | |
Resource not found | |
/opt/local/lib/ruby/gems/1.8/gems/rest-client-1.0.3/lib/restclient/request.rb:193:in `process_result' | |
/opt/local/lib/ruby/gems/1.8/gems/rest-client-1.0.3/lib/restclient/request.rb:125:in `transmit' | |
/opt/local/lib/ruby/1.8/net/http.rb:543:in `start' | |
/opt/local/lib/ruby/gems/1.8/gems/rest-client-1.0.3/lib/restclient/request.rb:123:in `transmit' | |
/opt/local/lib/ruby/gems/1.8/gems/rest-client-1.0.3/lib/restclient/request.rb:49:in `execute_inner' | |
/opt/local/lib/ruby/gems/1.8/gems/rest-client-1.0.3/lib/restclient/request.rb:39:in `execute' | |
/opt/local/lib/ruby/gems/1.8/gems/rest-client-1.0.3/lib/restclient/request.rb:17:in `execute' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
post '/press' do | |
digits = params[:digits] | |
if digits != "1" | |
redirect '/' | |
end | |
content_type 'text/xml', :charset => 'utf-8' | |
builder do |xml| | |
xml.instruct! |
NewerOlder