dcrec1 / signal

An integration server written in Rails and integrated with metric_fu, rspec, cucumber and maven. Easy to install and easy to use

Home Page:http://www.diegocarrion.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot access PATH or gems from inside Signal

manuelmeurer opened this issue · comments

When I set up Signal as described and start a build, I get the output "sh: rake: not found".
Seems like "Kernel.system" cannot access my PATH. When I replace "rake" with "/opt/ruby-enterprise-1.8.6-20090610/bin/rake", I get an error message that the gem flog is not found when the metrics are build, although the gem is installed. When I execute the "rake build" command from the command line, everything works fine.

This is most likely not a Signal issue but has to do with Passenger. http://www.icoretech.org/2009/08/passenger-mod_rails-path-on-leopard-snow-leopard/

Thanks Manuel, will put that link in the README.

I followed this advice, but it still can't find RVM

* branch master -> FETCH_HEAD
Already up-to-date.
sh: rvm: not found
rake aborted!
Don't know how to build task 'buil

I have RVM installed, and it works fine when I run script/server and use port 3000. Whats the secret to load in my bash_profile with passenger so it has the same PATH as my user?

Ok. That icoretech blog post you are linking to is ancient, and no longer works

Found the right answer here:
http://chrismdp.github.com/2010/03/multiple-ci-joes-with-rack-and-passenger/

In your passenger vhost file you can do this to set the path:

SetEnv PATH /usr/local/bin:/opt/ruby-ee/bin:/bin:/usr/bin

Here's the error I get now.

* branch master -> FETCH_HEAD
Already up-to-date.
ruby ruby-1.8 is not installed.
'rvm install ruby-1.8'
rake aborted!

When Passenger is executed, I think it uses the user that is the owner from the application but with the environmnet variables from the root user, something like this:

su deploy -c "rvm list"

try executing this as root to analyze the output, maybe you need to install rvm as system wide.