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
Mongoid.configure do |config| | |
autocreate_indexes = true | |
if ENV['MONGOHQ_URL'] | |
conn = Mongo::Connection.from_uri(ENV['MONGOHQ_URL']) | |
uri = URI.parse(ENV['MONGOHQ_URL']) | |
config.master = conn.db(uri.path.gsub(/^\//, '')) | |
else | |
config.master = Mongo::Connection.from_uri("mongodb://localhost:27017").db('xxxxx_development') | |
end | |
end |
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
Exception `NoMethodError' at /Library/Ruby/Gems/1.8/gems/rack-1.2.1/lib/rack/builder.rb:35 - undefined method `first_name' for User:Class | |
(eval):2:in `method_missing_without_nesting': undefined method `first_name' for User:Class (NoMethodError) | |
from (eval):2:in `method_missing' | |
from (eval):4:in `__send__' | |
from (eval):4:in `method_missing' | |
from ./user.rb:8 | |
from /Library/Ruby/Gems/1.8/gems/activesupport-3.0.4/lib/active_support/dependencies.rb:239:in `require' | |
from /Library/Ruby/Gems/1.8/gems/activesupport-3.0.4/lib/active_support/dependencies.rb:239:in `require' | |
from /Library/Ruby/Gems/1.8/gems/activesupport-3.0.4/lib/active_support/dependencies.rb:225:in `load_dependency' | |
from /Library/Ruby/Gems/1.8/gems/activesupport-3.0.4/lib/active_support/dependencies.rb:596:in `new_constants_in' |
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
densone:curbd densone$ rackup -p 9292 config.ru -d | |
nil | |
Exception `LoadError' at /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31 - no such file to load -- bundler/setup | |
Exception `NoMethodError' at /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rational.rb:78 - undefined method `gcd' for Rational(1, 2):Rational | |
Exception `Errno::EEXIST' at /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/fileutils.rb:243 - File exists - /Library/Ruby/Gems/1.8 | |
Exception `LoadError' at /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/tmpdir.rb:14 - no such file to load -- Win32API | |
Exception `TypeError' at (eval):4 - can't modify frozen object | |
Exception `LoadError' at /Library/Ruby/Gems/1.8/gems/json-1.5.1/lib/json/ext.rb:12 - no such file to load -- json/ext/1.8/parser | |
Using Ext extension for JSON. | |
Exception `LoadError' at /Library/Ruby/Gems/1.8/gems/activesupport-3.0.4/lib/active_support/core_ext/string/xchar.rb:4 - no such file to load -- fast_xs |
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
source 'http://rubygems.org' | |
gem 'sinatra' | |
gem 'sinatra-mongoid', :require => 'sinatra/mongoid' | |
gem 'bcrypt-ruby' | |
gem 'bson_ext' | |
gem 'json' | |
gem 'fog' | |
gem 'carrierwave' | |
gem 'i18n' |
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
Sequel::AdapterNotFound -> LoadError: require 'mysql' did not define \ | |
Mysql::CLIENT_MULTI_RESULTS! You are probably using the pure ruby mysql.rb \ | |
driver, which Sequel does not support. You need to install the C based adapter, \ | |
and make sure that the mysql.so file is loaded instead of the mysql.rb file. |
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
merb : chef-server (api) : worker (port 4000) ~ Started request handling: Mon Nov 15 21:59:15 +0000 2010 | |
merb : chef-server (api) : worker (port 4000) ~ Params: {"cookbook_version"=>"0.1.0", "action"=>"show_file", "checksum"=>"d41d8cd98f00b204e9800998ecf8427e", "cookbook_name"=>"base", "controller"=>"cookbooks"} | |
merb : chef-server (api) : worker (port 4000) ~ File with checksum d41d8cd98f00b204e9800998ecf8427e not found in the repository (this should not happen) - (Merb::ControllerExceptions::InternalServerError) | |
/usr/share/chef-server-api/app/controllers/cookbooks.rb:90:in `show_file' | |
/usr/lib/ruby/1.8/merb-core/controller/abstract_controller.rb:315:in `send' | |
/usr/lib/ruby/1.8/merb-core/controller/abstract_controller.rb:315:in `_call_action' | |
/usr/lib/ruby/1.8/merb-core/controller/abstract_controller.rb:289:in `_dispatch' | |
/usr/lib/ruby/1.8/merb-core/controller/merb_controller.rb:252:in `_dispatch' | |
/usr/lib/ruby/1.8/merb-core/dispatch/dispatcher.rb:102:in `dispatch_action' | |
/usr/lib/ruby/1.8/merb-core/dispatch/ |
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
[Sun, 14 Nov 2010 01:50:46 +0000] DEBUG: Synchronizing cookbook auth | |
[Sun, 14 Nov 2010 01:50:46 +0000] DEBUG: String to sign: 'Method:GET | |
Hashed Path:1u8kI2jUaHFJ5x1wZm4S/AB/Ld0= | |
X-Ops-Content-Hash:2jmj7l5rSw0yVb/vlWAYkK/YBwk= | |
X-Ops-Timestamp:2010-11-14T01:50:46Z | |
Header hash: {"X-Ops-Content-Hash"=>"2jmj7l5rSw0yVb/vlWAYkK/YBwk=", "X-Ops-Authorization-1"=>"AgHD8CkkmxlIXqbOf479NIcJC33Oo2gJhiLhxvcG7Atpr8yG72C0Z/DRDXIR", "X-Ops-Userid"=>"chef03.ord.", "X-Ops-Sign"=>"version=1.0", "X-Ops-Authorization-2"=>"a85/evYTPbiQUIb3A241Jvluy1O81Y68EYiXSK8siUyoPary1IfKkIOiqrGx", "X-Ops-Authorization-3"=>"hNmhr0xLZ3UiGMuf4NDdloQ2MU0N7tHIdjLhuIcoSBZ/FOOiDaJzaeYn4X/I", "X-Ops-Authorization-4"=>"dLBh9iHg1D9PYQ+YR5VyErTT7l1GQDSnoKTK7m68u7DQwHfczY2SPHgY1l+s", "X-Ops-Authorization-5"=>"HdiRA+Dze1IRqX/MYDbfqNJMKJ91mWodByDqS5iJgXmfWZgW5qvsqFhGhl2Q", "X-Ops-Authorization-6"=>"iKGekZqvp8IEkQ9U5lgteVgl+bno+c7sCe/2rHKHEQ==", "X-Ops-Timestamp"=>"2010-11-14T01:50:46Z"} | |
[Sun, 14 Nov 2010 01:50:46 +0000] DEBUG: Sending HTTP Request via GET t |
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
$ knife cookbook delete mongodb | |
$ knife cookbook upload mongodb -o cookbooks/ | |
$ knife cookbook download mongodb -d . | |
INFO: Downloading mongodb cookbook version 0.1.0 | |
INFO: Downloading resources | |
INFO: Downloading providers | |
INFO: Downloading recipes | |
INFO: Downloading definitions | |
INFO: Downloading libraries | |
INFO: Downloading attributes |
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
{ | |
"id": "pacemaker", | |
"auth": "7db8f9aba89a6bc9f869cd1478f36dbb", | |
"nodes": [ | |
"chef01", | |
"chef02" | |
] | |
} |
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
file "/tmp/foo" do | |
notifies :run, resources(:execute => 'bobo') | |
notifies :restart, resources(:service => 'apache2') | |
end |