All of the documentation for scgi_ctrl says to run it from your Rails app directory, and I can''t get it to run from a single command line like you would in a system startup script. I''ve tried: scgi_ctrl -c /www/myapp/config/scgi.yaml start ...but that just errors out unless I run it from within the root of my rails app (/www/myapp). -- Posted via http://www.ruby-forum.com/.
Hi porkface, aren''t you able to run something like cd /path/to/rails/root/ && scgi_ctrl start as a single liner on your startup script. I''ve just tried something like this on the command line on a box with an old scgi installation and it seems to work (haven''t tried to run the command from a startup script though). At least you should be able to but this into an shell script and let this be run by your startup script. I''ve used to use scgi_rails too but now am a happy mongrel user. Is there a reason why you are relying on scgi? This seems to get not as many love by zed as mongrel is getting... Cheers, Jan On 7/28/06, porkface <bunt20@hotmail.com> wrote:> > All of the documentation for scgi_ctrl says to run it from your Rails > app directory, and I can''t get it to run from a single command line like > you would in a system startup script. > > I''ve tried: > scgi_ctrl -c /www/myapp/config/scgi.yaml start > > ...but that just errors out unless I run it from within the root of my > rails app (/www/myapp). > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060728/8520411e/attachment-0001.html
not a lot of help but i know you can specify the start up directory with a switch, just cant remember what it is (or even how to get help - ''scgi_ctl -h'' ? ;been some months, used to have it in a cron job so i know it works for sure) that said, mongrel is your friend - i''m pretty sure mr shaw isn''t even doing anything with scgi now, best to jump ship, tha doggies rock On Friday 28 July 2006 01:03, porkface wrote:> All of the documentation for scgi_ctrl says to run it from your Rails > app directory, and I can''t get it to run from a single command line like > you would in a system startup script. > > I''ve tried: > scgi_ctrl -c /www/myapp/config/scgi.yaml start > > ...but that just errors out unless I run it from within the root of my > rails app (/www/myapp).
The documentation say''s you can use the -r switch to specify the run path. It doesn''t appear to work for me. Also, you have to provide a password to shut scgi down, which makes stopping it via a script more complicated. Chris On 7/27/06, porkface <bunt20@hotmail.com> wrote:> All of the documentation for scgi_ctrl says to run it from your Rails > app directory, and I can''t get it to run from a single command line like > you would in a system startup script. > > I''ve tried: > scgi_ctrl -c /www/myapp/config/scgi.yaml start > > ...but that just errors out unless I run it from within the root of my > rails app (/www/myapp). > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
snacktime wrote:> The documentation say''s you can use the -r switch to specify the run > path. It doesn''t appear to work for me. Also, you have to provide a > password to shut scgi down, which makes stopping it via a script more > complicated.Yeah, I read several messages in various places saying people couldn''t get the -r switch to work as intended. Looks like I''m switching to Mongrel, although I may do some benchmarks first out of curiosity. Thanks everyone. -- Posted via http://www.ruby-forum.com/.