Skip to content

Instantly share code, notes, and snippets.

View captproton's full-sized avatar

captproton captproton

View GitHub Profile
$ rake db:migrate --trace
(in /Users/heathertanner/Sites/rainforest2blossom)
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute db:migrate
== CreateStructureForPortfolio: migrating ====================================
-- create_table(:images_portfolio_entries, {:force=>true, :id=>false})
-> 0.1361s
-- add_index(:images_portfolio_entries, [:image_id, :portfolio_entry_id], {:unique=>false, :name=>"composite_key_index"})
Started GET "/session/new" for 98.210.200.138 at Sun Sep 26 22:01:28 -0700 2010
Processing by SessionsController#new as HTML
Parameters: {"locale"=>:en}
Rendered .bundle/gems/ruby/1.8/gems/refinerycms-0.9.8.5/vendor/refinerycms/core/app/views/shared/admin/_error_messages.html.erb (0.5ms)
Rendered .bundle/gems/ruby/1.8/gems/refinerycms-0.9.8.5/vendor/refinerycms/core/app/views/shared/admin/_form_actions.html.erb (2.0ms)
Rendered .bundle/gems/ruby/1.8/gems/refinerycms-0.9.8.5/vendor/refinerycms/core/app/views/admin/_head.html.erb (3.8ms)
Rendered .bundle/gems/ruby/1.8/gems/refinerycms-0.9.8.5/vendor/refinerycms/authentication/app/views/sessions/new.html.erb within layouts/login (44.5ms)
Completed in 87ms
ActionView::Template::Error (Read-only file system - /disk1/home/slugs/299642_10f2dee_c454/mnt/public/stylesheets/cache - Heroku has a read-only filesystem. See http://docs.heroku.com/constraints#read-only-filesystem):
$ heroku logs --app rainforest-staging
==> dyno-1567341.log <==
/home/slugs/215288_4dc3b6d_cebb/mnt/.bundle/gems/ruby/1.8/gems/authlogic-2.1.6/lib/authlogic.rb:3: warning: already initialized constant AUTHLOGIC_PATH
>> Thin web server (v1.2.6 codename Crazy Delicious)
>> Maximum connections set to 1024
>> Listening on 0.0.0.0:57127, CTRL+C to stop
==> production.log <==
Processing Admin::DashboardController#index (for 98.210.200.138 at 2010-09-27 16:41:39) [GET]
$ heroku logs --app rainforest-staging
==> dyno-1567341.log <==
/home/slugs/215288_4dc3b6d_cebb/mnt/.bundle/gems/ruby/1.8/gems/authlogic-2.1.6/lib/authlogic.rb:3: warning: already initialized constant AUTHLOGIC_PATH
>> Thin web server (v1.2.6 codename Crazy Delicious)
>> Maximum connections set to 1024
>> Listening on 0.0.0.0:57127, CTRL+C to stop
==> production.log <==
Processing ApplicationController#error_404 (for 60.234.162.154 at 2010-09-27 16:44:42) [GET]
Parameters: {"path"=>["refinery"]}
YAHOO.util.Connect.asyncRequest("GET", "http://developer.yahoo.com/yui/examples/carousel/assets/php/getimages.php", {
success: function (o) {
var i, r = eval('(' + o.responseText + ')');
curpos = r.length;
for (i = 0; i < curpos; i++) {
items.push(r[i]);
}
Errno::ECONNREFUSED in Clearance/usersController#create
Connection refused - connect(2)
RAILS_ROOT: /Users/heathertanner/Sites/rails/osskids
Application Trace | Framework Trace | Full Trace
Request
Parameters:
Processing Clearance::UsersController#create (for 98.210.200.138 at 2010-10-08 11:11:41) [POST]
Parameters: {"commit"=>"Sign up", "action"=>"create", "authenticity_token"=>"z40TZ9FfOb+OVT9I6YvYO5jxa/2SjnAbsINvm6ewLmQ=", "controller"=>"clearance/users", "user"=>{"password_confirmation"=>"[FILTERED]", "password"=>"[FILTERED]", "email"=>"happy@captproton.com"}}
ActionView::TemplateError (Missing host to link to! Please provide :host parameter or set default_url_options[:host]) on line #5 of vendor/gems/clearance-0.8.8/app/views/clearance_mailer/confirmation.html.erb:
2: <%= new_user_confirmation_url(
3: :user_id => @user,
4: :token => @user.confirmation_token,
5: :encode => false) %>
(eval):21:in `new_user_confirmation_url'
Factory.define :valid_user , :class => User do |u|
u.password "mathieu"
u.password_confirmation "mathieu"
u.email "mathieu.rousseau.31@gmail.com"
end
Factory.define :invalid_user , :class => User do |u|
end
Factory.define :user do |f|
@captproton
captproton / gist:639190
Created October 21, 2010 19:53
error installing pg gem
Installing pg (0.8.0) with native extensions /opt/local/lib/ruby/site_ruby/1.8/rubygems/installer.rb:482:in `build_extensions': ERROR: Failed to build gem native extension. (Gem::Installer::ExtensionBuildError)
/opt/local/bin/ruby extconf.rb
extconf.rb:1: command not found: pg_config --version
ERROR: can't find pg_config.
HINT: Make sure pg_config is in your PATH
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.
source 'http://rubygems.org'
gem 'rails', '3.0.0'
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
gem 'sqlite3-ruby', :require => 'sqlite3'
# Use unicorn as the web server