Newbie question - script/server doesn't run without explicit

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.

Steven McNeel wrote:

The first line in the server script is:

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

This one is probably an easy one, but is very troubling to me. I can’t

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

Yes, 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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs