Steven McNeel
2006-May-10 21:19 UTC
[Rails] newbie question - script/server doesn''t run without explicit ''ruby'' command
Hi, This one is probably an easy one, but is very troubling to me. I can''t just say: script/server and watch WEBrick start. I have to say: ruby script/server The first line in the server script is: #!/usr/bin/env ruby which invokes ruby just fine on the command line. For fun, I changed the line to point directly to my executable: #!/usr/local/bin/ruby But still, same result. I just get my prompt back. But invoking the script explicitly with ruby in front of it actually starts WEBrick. This may seem minor, but none of the online examples I see for UNIX uses the explicit ruby command. #! should work fine, right? I happen to be experiencing other problems (with FastCGI and Typo), and I''m wondering if they might be related. Ruby 1.8.4 Rails 0.14.4 Linux Fedora Core 4 Thanks, Steve P.S. Same goes for other scripts, like script/process/spawner. So the problem is global. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060510/838c4213/attachment-0001.html
Ray Baxter
2006-May-10 21:39 UTC
[Rails] Re: newbie question - script/server doesn''t run without explicit ''ruby'' command
Steven McNeel wrote:> This one is probably an easy one, but is very troubling to me. I can''t > just say: > > script/server > > and watch WEBrick start. I have to say: > > ruby script/server > > > The first line in the server script is: > > #!/usr/bin/env ruby > > which invokes ruby just fine on the command line. For fun, I changed > the line to point directly to my executable: > > #!/usr/local/bin/ruby > > But still, same result. I just get my prompt back. But invoking the > script explicitly with ruby in front of it actually starts WEBrick. > > This may seem minor, but none of the online examples I see for UNIX uses > the explicit ruby command. #! should work fine, right?Are your scripts executable? chmod a+x script/server. -- Ray
Steven McNeel
2006-May-10 21:59 UTC
[Rails] Re: newbie question - script/server doesn''t run without explicit ''ruby'' command
> This one is probably an easy one, but is very troubling to me. I can''t> > just say: > > > > script/server > > > > and watch WEBrick start. I have to say: > > > > ruby script/server > > > > > > The first line in the server script is: > > > > #!/usr/bin/env ruby > > > > which invokes ruby just fine on the command line. For fun, I changed > > the line to point directly to my executable: > > > > #!/usr/local/bin/ruby > > > > But still, same result. I just get my prompt back. But invoking the > > script explicitly with ruby in front of it actually starts WEBrick. > > > > This may seem minor, but none of the online examples I see for UNIX uses > > the explicit ruby command. #! should work fine, right? > > Are your scripts executable? > > chmod a+x script/server. > > -- > > RayYes, all of my scripts are all executable. In fact, I ran chmod -R 777 *over the whole hierarchy, to eliminate any potential permission issues. Thanks, Steve -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060510/936d3b30/attachment-0001.html