Okay, I know that mod_ruby doesn’t exist for Windows, and won’t even
compile under Cygwin. I find this unfortunate, as I need to
take my web server down for maintenance, I would prefer to have a backup
online while I do so, and the only boxes available to play backup
run Windows.
So I am willing to make do with traditional, fork/exec, slow,
resource-intensive CGIs. But I would also like to have my .rhtml’s run through
eruby automatically. I can configure Apache to run eruby on them, but that
means I need an eruby.exe for Windows. Is it still possible to build a
standalone eruby executable? And will it build on Cygwin?
Thanks.
-Mark
Mark J. Reed wrote:
Okay, I know that mod_ruby doesn’t exist for Windows, and won’t even
compile under Cygwin. I find this unfortunate, as I need to
take my web server down for maintenance, I would prefer to have a backup
online while I do so, and the only boxes available to play backup
run Windows.
So I am willing to make do with traditional, fork/exec, slow,
resource-intensive CGIs. But I would also like to have my .rhtml’s run through
eruby automatically. I can configure Apache to run eruby on them, but that
means I need an eruby.exe for Windows. Is it still possible to build a
standalone eruby executable? And will it build on Cygwin?
Thanks.
-Mark
I suppose it’ll build on cygwin, I know it does on mingw so…, besides
in the #{ruby_mirror}/ruby/binaries/cygwin/1.8/ext/ there’s an
eruby-1.0.5-i386-cygwin-1.8.tar.gz , and very fresh: 13-jan-2004.
Adartse
Mark J. Reed wrote:
Okay, I know that mod_ruby doesn’t exist for Windows, and won’t even
compile under Cygwin. I find this unfortunate, as I need to
take my web server down for maintenance, I would prefer to have a backup
online while I do so, and the only boxes available to play backup
run Windows.
Another big picture alternative is to build your app into a Drb server
and keep your cgi script pretty bland – then you can keep your app
running in a separate process.
···
–
Chris
http://clabs.org
Osuka Adartse rocioestradacastaneda@prodigy.net.mx writes:
I suppose it’ll build on cygwin, I know it does on mingw so…, besides
in the #{ruby_mirror}/ruby/binaries/cygwin/1.8/ext/ there’s an
eruby-1.0.5-i386-cygwin-1.8.tar.gz , and very fresh: 13-jan-2004.
Thanks! I got it working now. There’s just one problem:
eruby scripts don’t honor RUBYOPT. On my Linux box I use mod_ruby’s
RubyRequire directive to automatically require cgi in every .rhtml
file, and I thought using SetEnv to put -rcgi in RUBYOPT would
accomplish the same thing. But while ruby.exe and irb.exe honor that
setting, eruby.exe doesn’t.
Is there something in the way eruby is invoking the Ruby interpreter that
prevents the options from being parsed? Is there a simple tweak to the eruby
source to enable it?
-Mark
Chris Morris chrismo@clabs.org writes:
Another big picture alternative is to build your app into a Drb server
and keep your cgi script pretty bland – then you can keep your app
running in a separate process.
Well, it’s not really a web application, just web pages with some dynamic
elements, done in mod_ruby+eruby - because I like Ruby. I have to admit
that if I were writing an actual web app I would be more likely to use Java. I
love Ruby the language, but ruby the implementation doesn’t seem quite stable
enough for production use, IME. Between 1.6 and 1.8 there were several
compatibility-breaking changes, and some features are still broken in the
latest official relese (fixed in CVS, but I’m not about to run a production app
on bleeding-edge software).
But I’m not familiar with Drb. What is it, some form of ruby app server?
Does the name stand for “Distributed RuBy”?
-Mark
Mark J. Reed wrote:
But I’m not familiar with Drb. What is it, some form of ruby app server?
Does the name stand for “Distributed RuBy”?
Yeup. http://www.rubycentral.com/articles/drb.html
···
–
Chris
http://clabs.org