Forum Index Search Forum Register Log in

Current

7.0 Production
build 6 Mar '07


7.1 Beta 5
build 7 Oct '07



A donation makes a contribution towards the time and effort that's going in to running this site.

Steffen

Contact:
My mail address is
at the top of the paypal form :

Your donations will help to keep this site alive and well.

Ruby on Rails

 
Post new topic   Reply to topic    Sambar Forum Index -> Coding & Script Corner
View previous topic :: View next topic  
Author Message
2jray



Joined: 05 Jan 2006
Posts: 3
Location: Northam, Western Asutralia

PostPosted: Sun 30 Jul '06 18:00    Post subject: Ruby on Rails Reply with quote

While I've been using PHP with Sambar very successfully for many years, I've recently been bombarded with info about Ruby on Rails. Would it be simple enough to run Ruby on the Sambar server?

Any tips much appreciated
Back to top
View user's profile Visit poster's website
Steffen



Joined: 07 Jun 2004
Posts: 403
Location: Netherlands

PostPosted: Sun 30 Jul '06 20:55    Post subject: Reply with quote

A Rails web application can run under virtually any web server, but the most convenient way to develop a Rails web application is to use the built-in WEBrick web server.

So you can try to run it as CGI under sambar, but that seems not so fast.
Also you can Sambar's Revrse proxy against WEBtrick.
Back to top
View user's profile Visit poster's website
2jray



Joined: 05 Jan 2006
Posts: 3
Location: Northam, Western Asutralia

PostPosted: Sun 06 Aug '06 6:48    Post subject: Reply with quote

Would that mean I would have to set up the WEBrick server for the other domains I host as well?
Back to top
View user's profile Visit poster's website
Steffen



Joined: 07 Jun 2004
Posts: 403
Location: Netherlands

PostPosted: Mon 07 Aug '06 16:30    Post subject: Reply with quote

As test I installed Ruby on Rails and tried to run the example application under sambar.

No go Sad because Rails uses some redirection that takes place in a .htaccess file located in the public folder and that kind of redirection is not possible with sambar, because (again) Sambar lacks Apache's mod_rewrite features. So on Apache it was running wright away.

Maybe there is a trick to run it under sambar, when I have time I shall investigate.


Steffen
Back to top
View user's profile Visit poster's website

Post new topic   Reply to topic    Sambar Forum Index -> Coding & Script Corner
Page 1 of 1