no such file to load -- rubygems
|
|
Hello, I’ve installed the starling and daemons gem on my brightbox and also the workling plugin and daemons generator. When I try to start the client of either the daemon or the workling client I get the error message require: no such file to load — rubygems. It works just fine on my ubuntu box. |
|
|
can you try doing |
|
|
i’ve just done that (found it on another site) and they were in two different paths and i deleted the ruby in the /usr/local …. path thanks for your help |
|
|
You can add custom tasks to your Capistrano recipe and set them to run before or after other tasks. E.g. your daemon and worklings might be…
after "deploy:restart", "custom:restart"
namespace :custom do
task :restart do
run "cd #{release_path} && script/daemon restart"
end
end
You can find plenty examples of how to write your own Capistrano tasks online. |
|
|
thanks for that, does the environment need to specified or does it default to production on deploy? |
|
|
Yeah you need to specify the Rails environment. It’s available as a local variable in deploy.rb so you could do…
|
|
|
thanks for that, I think that answers all my questions for the time being…. |