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.