Skip to content

Instantly share code, notes, and snippets.

View chollier's full-sized avatar

Loic CHOLLIER chollier

View GitHub Profile
def subproduct?
!self.parent.blank?
end
def self.not_sub
returning [] do |value|
Product.each do |x|
if !x.subproduct?
value << x
end
/usr/local/lib/site_ruby/1.8/rubygems.rb:523:in `report_activate_error': Could not find RubyGem rake (>= 0) (Gem::LoadError)
from /usr/local/lib/site_ruby/1.8/rubygems.rb:131:in `activate'
from /usr/local/lib/site_ruby/1.8/rubygems.rb:49:in `gem'
from /home/loic/gem-install/bin/rake:18
/usr/local/lib/site_ruby/1.8/rubygems.rb:523:in `report_activate_error': Could not find RubyGem rake (>= 0) (Gem::LoadError)
from /usr/local/lib/site_ruby/1.8/rubygems.rb:131:in `activate'
from /usr/local/lib/site_ruby/1.8/rubygems.rb:49:in `gem'
from /home/loic/gem-install/bin/rake:18
rake aborted!rake aborted!
uninitialized constant Bundler
uninitialized constant Bundler
/home/loic/repos/plusandmore/releases/20100919162044/Rakefile:4/home/loic/repos/plusandmore/releases/20100919162044/Rakefile:4
(See full trace by running task with --trace)(See full trace by running task with --trace)
# Begin Whenever generated tasks for: app
PATH=/home/loic/.rvm/bin:/home/loic/gem-install/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games
0 5 * * * cd /home/loic/repos/plusandmore/releases/20100919162044 && RAILS_ENV=production /usr/bin/env rake -s sitemap:refresh >> /home/loic/logs/cron.log 2>&1
0 5 * * * cd /home/loic/repos/plusandmore/releases/20100919162044 && RAILS_ENV=production /usr/bin/env rake -s ts:rebuild >> /home/loic/logs/cron.log 2>&1
# End Whenever generated tasks for: app
after "deploy:symlink", "deploy:update_crontab"
namespace :deploy do
desc "Update the crontab file"
task :update_crontab, :roles => :db do
run "cd #{release_path} && whenever --update-crontab #{:app}"
end
end
every 1.day, :at => '5:00 am' do
rake "-s sitemap:refresh"
rake "-s ts:rebuild"
end
uninitialized constant Bundler
uninitialized constant Bundler
/home/loic/xxxx/releases/20100919162044/Rakefile:4
/home/loic/xxxx/releases/20100919162044/Rakefile:4(See full trace by running task with --trace)