eruby?

J

Jonathan Denni

"In order to use eruby with the Apache Web server, you need to perform
the following steps.

* Copy the eruby binary to the cgi-bin directory.

* Add the following two lines to httpd.conf:

AddType application/x-httpd-eruby .rhtml
Action application/x-httpd-eruby /cgi-bin/eruby"

i found this here:
http://www.ruby-doc.org/docs/ProgrammingRuby/html/web.html

is this all i need to do, or do i need a ruby-enabled web-server?
also, where do i find this eruby binary, and httpd.conf?

thanks
 
A

Aredridel

--=-njzdCOEO0+D2Ejrc82TA
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

"In order to use eruby with the Apache Web server, you need to perform=20
the following steps.
=20
* Copy the eruby binary to the cgi-bin directory.
=20
* Add the following two lines to httpd.conf:
=20
AddType application/x-httpd-eruby .rhtml
Action application/x-httpd-eruby /cgi-bin/eruby"
=20
i found this here:=20
http://www.ruby-doc.org/docs/ProgrammingRuby/html/web.html

That's one way to make ruby talk to the web -- CGI, so not the fastest,
and ERB, but yeah.
=20
is this all i need to do, or do i need a ruby-enabled web-server?
also, where do i find this eruby binary, and httpd.conf?

There's a binary 'erb' in the stock ruby distro that does it, or 'eruby'
from http://modruby.net/, which is likely a tad faster.

There's also FastCGI, proxying to Mongrel or WEBrick, or other ways to
integrate ruby into the server, depending on what you're doing.

If you want a low-barrier-to-entry works-like-PHP method, use the above.
I recommend FastCGI, SCGI or Mongrel for high-performance apps.

Aria
=20
thanks
=20

--=-njzdCOEO0+D2Ejrc82TA
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)

iD8DBQBFEBw3tP09exA3hooRAucGAKCmoGiXqHgN4qsbmkvDyiGoBcj7VgCdG5oq
pQUxTt7DDo8OKRCjI4o1KPU=
=Cisy
-----END PGP SIGNATURE-----

--=-njzdCOEO0+D2Ejrc82TA--
 
J

Jonathan Denni

Aredridel said:
That's one way to make ruby talk to the web -- CGI, so not the fastest,
and ERB, but yeah.


There's a binary 'erb' in the stock ruby distro that does it, or 'eruby'
from http://modruby.net/, which is likely a tad faster.

There's also FastCGI, proxying to Mongrel or WEBrick, or other ways to
integrate ruby into the server, depending on what you're doing.

If you want a low-barrier-to-entry works-like-PHP method, use the above.
I recommend FastCGI, SCGI or Mongrel for high-performance apps.

Aria

Thanks

I downloaded eRuby. Which file do I put in the CGI directory, or do I
put the whole directory?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,965
Messages
2,570,148
Members
46,710
Latest member
FredricRen

Latest Threads

Top