
05-14-2009, 09:06 PM
|
|
Member
|
|
Join Date: Dec 2006
Location: Hawaii
Posts: 27
|
|
Oh ok, so is RailsRunner coming from ruby-lsapi? I was running 3.3, I just updated the gem to 3.5. I restarted LSWS but it didn't seem to make a diff.
On our staging capistrano deploy script we have this custom after_update_code method run:
Code:
namespace :deploy do
task :after_update_code, :roles => :app do
sudo <<-CMD
sh -c "chown -R #{jail_user}:#{jail_group} #{release_path} &&
chmod -R g+w #{release_path}"
CMD
# Put the dispatch.lsapi into the application (just required for staging).
if rails_env == "staging"
sudo "cp /usr/lib/ruby/gems/1.8/gems/ruby-lsapi-3.5/rails/dispatch.lsapi #{release_path}/public/dispatch.lsapi"
sudo "chmod +x #{release_path}/public/dispatch.lsapi"
end
end
task :restart, :roles => :app do
sudo "#{lsws_cmd} restart"
end
end
Or do I have to update other files to get RailsRunning up to date?
Here is a snippet from the stderr.log file:
Code:
2009-05-15 03:59:54.885 [STDERR] /home/sugardev/www/releases/20090515034617/vendor/plugins/active_scaffold/lib/active_scaffold/config/core.rb:145:in `method_missing': undefined method `configure' for #<ActiveScaffold::Config::Core:0x2b6e6ec76ae8> (NoMethodError)
2009-05-15 03:59:55.038 [STDERR] from /home/sugardev/www/releases/20090515034617/vendor/plugins/active_scaffold/lib/active_scaffold.rb:57:in `active_scaffold'
2009-05-15 03:59:55.038 [STDERR] from /home/sugardev/www/releases/20090515034617/app/controllers/admin/users_controller.rb:11
2009-05-15 03:59:55.038 [STDERR] from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
2009-05-15 03:59:55.038 [STDERR] from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
2009-05-15 03:59:55.038 [STDERR] from /home/sugardev/www/releases/20090515034617/vendor/rails/activesupport/lib/active_support/dependencies.rb:158:in `require'
2009-05-15 03:59:55.038 [STDERR] from /home/sugardev/www/releases/20090515034617/vendor/rails/activesupport/lib/active_support/dependencies.rb:265:in `require_or_load'
2009-05-15 03:59:55.038 [STDERR] from /home/sugardev/www/releases/20090515034617/vendor/rails/activesupport/lib/active_support/dependencies.rb:224:in `depend_on'
2009-05-15 03:59:55.038 [STDERR] from /home/sugardev/www/releases/20090515034617/vendor/rails/activesupport/lib/active_support/dependencies.rb:136:in `require_dependency'
2009-05-15 03:59:55.038 [STDERR] ... 7 levels...
2009-05-15 03:59:55.038 [STDERR] from /home/sugardev/www/current/public/../config/../vendor/rails/railties/lib/initializer.rb:113:in `run'
2009-05-15 03:59:55.038 [STDERR] from /home/sugardev/www/current/public/../config/environment.rb:13
2009-05-15 03:59:55.038 [STDERR] from /home/sugardev/www/current/public/dispatch.lsapi:7:in `require'
2009-05-15 03:59:55.038 [STDERR] from /home/sugardev/www/current/public/dispatch.lsapi:7
2009-05-15 04:00:25.300 [STDERR] /home/sugardev/www/releases/20090515034617/vendor/plugins/active_scaffold/lib/active_scaffold/config/core.rb:145:in `method_missing': undefined method `configure' for #<ActiveScaffold::Config::Core:0x2b7aeb565c98> (NoMethodError)
2009-05-15 04:00:25.536 [STDERR] from /home/sugardev/www/releases/20090515034617/vendor/plugins/active_scaffold/lib/active_scaffold.rb:57:in `active_scaffold'
2009-05-15 04:00:25.536 [STDERR] from /home/sugardev/www/releases/20090515034617/app/controllers/admin/users_controller.rb:11
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from /home/sugardev/www/releases/20090515034617/vendor/rails/activesupport/lib/active_support/dependencies.rb:158:in `require'
from /home/sugardev/www/releases/20090515034617/vendor/rails/activesupport/lib/active_support/dependencies.rb:265:in `require_or_load'
2009-05-15 04:00:25.536 [STDERR] from /home/sugardev/www/releases/20090515034617/vendor/rails/activesupport/lib/active_support/dependencies.rb:224:in `depend_on'
from /home/sugardev/www/releases/20090515034617/vendor/rails/activesupport/lib/active_support/dependencies.rb:136:in `require_dependency'
... 7 levels...
2009-05-15 04:00:25.536 [STDERR] from /home/sugardev/www/current/public/../config/../vendor/rails/railties/lib/initializer.rb:113:in `run'
from /home/sugardev/www/current/public/../config/environment.rb:13
2009-05-15 04:00:25.537 [STDERR] from /home/sugardev/www/current/public/dispatch.lsapi:7:in `require'
from /home/sugardev/www/current/public/dispatch.lsapi:7
Perhaps it's a gem issue or conflict? Again, this is only happening under LSWS, works fine on mongrel. Thanks for the help.
|