Skip to content

Instantly share code, notes, and snippets.

View captproton's full-sized avatar

captproton captproton

View GitHub Profile
$ cd ../potato && rake && rake heroku:setup
(in /Users/heathertanner/Sites/rails/dancroak/potato)
config.gem: Unpacked gem cucumber-0.6.1 in vendor/gems has no specification file. Run 'rake gems:refresh_specs' to fix this.
config.gem: Unpacked gem cucumber-rails-0.2.3 in vendor/gems has no specification file. Run 'rake gems:refresh_specs' to fix this.
config.gem: Unpacked gem factory_girl-1.2.3 in vendor/gems has no specification file. Run 'rake gems:refresh_specs' to fix this.
/opt/local/bin/ruby -I"lib:test" "/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb" "test/unit/user_test.rb"
config.gem: Unpacked gem cucumber-0.6.1 in vendor/gems has no specification file. Run 'rake gems:refresh_specs' to fix this.
config.gem: Unpacked gem cucumber-rails-0.2.3 in vendor/gems has no specification file. Run 'rake gems:refresh_specs' to fix this.
config.gem: Unpacked gem factory_girl-1.2.3 in vendor/gems has no specification file. Run 'rake gems:refresh_specs' to fix this.
/Users/heathertanner/
$ rake rx:air:build
(in /Users/heathertanner/Downloads/pomodo)
Could not load active_record_tasks from 'restfulx/active_record_tasks'. If you are loading restfulx gem from vendor/gems, adjust the path to active_record_tasks in lib/tasks/restfulx_tasks.rake accordingly.
rake aborted!
Don't know how to build task 'rx:air:build'
(See full trace by running task with --trace)
# nerd_procurando_casa.rb
require 'rubygems'
require 'sinatra'
configure do
require 'memcache'
require 'typhoeus'
require 'iconv'
require 'json'
$ ruby ./recent_work.rb
/opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require': no such file to load -- sinatra/content_for (LoadError)
from /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from ./recent_work.rb:7
Using httparty we get the following hash:
$ httparty http://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20flickr.photos.interestingness(20)&env=store%3A%2F%2Fdatatables.org%2Falltableswithkeys
-bash: syntax error near unexpected token `('
TiVoHelp:recent-work.estherswhite.net heathertanner$ httparty http://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20flickr.photos.interestingness&env=store%3A%2F%2Fdatatables.org%2Falltableswithkeys
[1] 70269
TiVoHelp:recent-work.estherswhite.net heathertanner$ {"query"=>
{"results"=>
{"photo"=>
[{"ispublic"=>"1",
$ git push trybamboo master
Counting objects: 14664, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (6698/6698), done.
Writing objects: 100% (14664/14664), 9.99 MiB | 72 KiB/s, done.
Total 14664 (delta 6381), reused 14356 (delta 6181)
-----> Heroku receiving push
-----> Gemfile detected, running Bundler
Unresolved dependencies detected; Installing...
App failed to start
An error happened during the initialization of your app.
This may be due to a typo, wrong number of arguments, or calling a function that doesn’t exists. Check the stack trace below for specific details.
Make sure the app is working locally in production mode, by running it with RAILS_ENV (for Rails apps) or RACK_ENV (for Sinatra or other rack apps) set to production. e.g. RAILS_ENV=production script/server.
Original Error
/disk1/home/slugs/188222_3bfbd77_caea/mnt/config/../config/preinitializer.rb:9: Your bundler version is too old.Run `gem install bundler` to upgrade. (RuntimeError)
from /disk1/home/slugs/188222_3bfbd77_caea/mnt/config/boot.rb:28:in `load'
$ heroku logs --app strong-stone-95==> dyno-1340437.log <==
>> Thin web server (v1.2.6 codename Crazy Delicious)
>> Maximum connections set to 1024
>> Listening on 0.0.0.0:7372, CTRL+C to stop
==> production.log <==
.bundle/gems/gems/actionpack-2.3.5/lib/action_controller/dispatcher.rb:106:in `call'
/home/heroku_rack/lib/static_assets.rb:9:in `call'
/home/heroku_rack/lib/last_access.rb:25:in `call'
/home/heroku_rack/lib/date_header.rb:14:in `call'
App failed to start
Your application had an error when talking to Postgres.
Please see the database documentation for common errors and resolutions.
Also, make sure you’ve migrated your database if there’s fresh migrations that you just pushed.
Original Error
/disk1/home/slugs/188329_879a1f1_9f80/mnt/.bundle/gems/gems/activerecord-2.3.5/lib/active_record/connection_adapters/postgresql_adapter.rb:968:in `initialize': FATAL: connection limit exceeded for non-superusers (PGError)
from /disk1/home/slugs/188329_879a1f1_9f80/mnt/.bundle/gems/gems/activerecord-2.3.5/lib/active_record/connection_adapters/postgresql_adapter.rb:968:in `connect'
$ heroku logs --app radiant-mist-94
==> production.log <==
.bundle/gems/gems/actionpack-2.3.8/lib/action_view/base.rb:262:in `render'
.bundle/gems/gems/actionpack-2.3.8/lib/action_controller/base.rb:1250:in `render_for_file'
.bundle/gems/gems/actionpack-2.3.8/lib/action_controller/base.rb:936:in `render_without_benchmark'
.bundle/gems/gems/actionpack-2.3.8/lib/action_controller/benchmarking.rb:51:in `render'
.bundle/gems/gems/actionpack-2.3.8/lib/action_controller/benchmarking.rb:51:in `render'
.bundle/gems/gems/actionpack-2.3.8/lib/action_controller/base.rb:1326:in `default_render'
.bundle/gems/gems/actionpack-2.3.8/lib/action_controller/base.rb:1332:in `perform_action_without_filters'
.bundle/gems/gems/actionpack-2.3.8/lib/action_controller/filters.rb:617:in `call_filters'