> Programming Languages > Ruby
Various Topics Home | Disclaimer | Report Adult Posts

Various Topics on Ruby



Ruby - "eruby setup question" in Programming Languages


Old 04-07-2004   #1
.... ..on..
 
Default eruby setup question

I guess I'm a little confused. How can I setup eruby to process .rhtml
files without using mod_ruby? (I want it to run as a standard cgi app --
I'm going to run it under abyss webserver to be exact).

Thanks!
Greg B.
 
Old 04-07-2004   #2
..nna..
 
Default Re: eruby setup question

Greg Brondo wrote:
> I guess I'm a little confused. How can I setup eruby to process .rhtml
> files without using mod_ruby? (I want it to run as a standard cgi app --
> I'm going to run it under abyss webserver to be exact).
>
> Thanks!
> Greg B.
>

First of all, you need to register extention .rhtml to be handled as a
CGI script in your webserver. Then, ***uming the server runs on Unix,
you should add

#!/usr/local/bin/eruby -Mc

as a first line in your .rhtml file.

You may need to replace "/usr/local/bin" with whatever directory "eruby"
is installed in on your system.

Gennady.


 
Old 04-07-2004   #3
..u.. ..art..
 
Default Re: eruby setup question

Greg Brondo wrote:

> I guess I'm a little confused. How can I setup eruby to process .rhtml
> files without using mod_ruby? (I want it to run as a standard cgi app --
> I'm going to run it under abyss webserver to be exact).
>
> Thanks!
> Greg B.
>
>

go to the console

Server configuration-> Advanced ->cgi interpreters->add

interpreter: e:\usr\local\bin\eruby.exe
***oc extension: .rhtml
automatic blah: yes

change the interpreter path to your setup restart and that's it, you may
want to add index.rhtml to the index pages server-advandced->server
parameters->index files

Adartse


 
Old 04-07-2004   #4
..nna..
 
Default Re: eruby setup question

Gennady wrote:
> Greg Brondo wrote:
>
>> I guess I'm a little confused. How can I setup eruby to process .rhtml
>> files without using mod_ruby? (I want it to run as a standard cgi app --
>> I'm going to run it under abyss webserver to be exact).
>>
>> Thanks!
>> Greg B.
>>

> First of all, you need to register extention .rhtml to be handled as a
> CGI script in your webserver. Then, ***uming the server runs on Unix,
> you should add
>
> #!/usr/local/bin/eruby -Mc
>
> as a first line in your .rhtml file.


and make your .rhtml file executable with "chmod +x", of course.

>
> You may need to replace "/usr/local/bin" with whatever directory "eruby"
> is installed in on your system.
>
> Gennady.
>




 

Thread Tools
Display Modes





Powered by vBulletin®
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0