Rails, Ruby and Abyss Web Server

 
Post new topic   Reply to topic    Aprelium Forum Index -> FastCGI/CGI
View previous topic :: View next topic  
Author Message
EtienneR
-


Joined: 29 Jan 2006
Posts: 4

PostPosted: Sun Jan 29, 2006 6:28 pm    Post subject: Rails, Ruby and Abyss Web Server Reply with quote

Hi,

I am trying to setup Rails environment with an Abyss Web Server by using CGI features. At this time, I cannot go further due to lack of documentations. If anyone succeeded in it, I would be greatly interested in the how-to.

Thanks for all.
Back to top View user's profile Send private message
TRUSTAbyss
-


Joined: 29 Oct 2003
Posts: 3752
Location: USA, GA

PostPosted: Mon Jan 30, 2006 3:00 am    Post subject: Reply with quote

Quote:
I am trying to setup Rails environment ...


Can you tell us more about this Rails Environment?
Back to top View user's profile Send private message Visit poster's website
Anonymoose
-


Joined: 09 Sep 2003
Posts: 2192

PostPosted: Mon Jan 30, 2006 9:12 am    Post subject: Reply with quote

TRUSTpunk wrote:

Can you tell us more about this Rails Environment?


Google could have.

http://www.rubyonrails.org/
_________________

"Invent an idiot proof webserver and they'll invent a better idiot..."
Back to top View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Mon Jan 30, 2006 3:01 pm    Post subject: Re: Rails, Ruby and Abyss Web Server Reply with quote

EtienneR,

Ruby on Rails relies extensively on URL rewriting and cannot offer a good performance unless you use FastCGI.
FastCGI will be available in the coming version 2.3 (it is in Beta testing stage now). URL rewriting could be emulated using the idea exposed in http://www.aprelium.com/forum/viewtopic.php?t=7865 .
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
EtienneR
-


Joined: 29 Jan 2006
Posts: 4

PostPosted: Sat Mar 04, 2006 11:22 am    Post subject: Ruby on Rails on Abyss Reply with quote

Thanks a lot.
Back to top View user's profile Send private message
Yami King
-


Joined: 08 Sep 2005
Posts: 120

PostPosted: Sun Mar 26, 2006 6:42 pm    Post subject: Reply with quote

Did you succeed installing the Rails with the new Abyss?
If yes: how??
Back to top View user's profile Send private message Send e-mail
EtienneR
-


Joined: 29 Jan 2006
Posts: 4

PostPosted: Fri Mar 31, 2006 11:56 pm    Post subject: Reply with quote

In fact, no. But I haven't investigated a lot. As 2.3 version is now released, maybe smart tutorials will appear. And if success, why not purchasing one full licence ? If anyone receives this call...
Back to top View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Sat Apr 01, 2006 12:48 pm    Post subject: Reply with quote

Thank you for the tutorial suggestion. We'll be working on one which will be posted here soon.
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
EtienneR
-


Joined: 29 Jan 2006
Posts: 4

PostPosted: Sat Apr 01, 2006 1:31 pm    Post subject: Reply with quote

That's great. Let's spread this good news.
Back to top View user's profile Send private message
peterpichler
-


Joined: 08 Nov 2004
Posts: 1

PostPosted: Fri Jul 28, 2006 4:22 pm    Post subject: Reply with quote

Hi any news about a Tutorial on Ruby on Rails for Abyss? I found the tutorial for Ruby but nothing about Rails.

Any help would be highly appreciated.

best regards Peter
_________________
Peter Pichler
Back to top View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Sat Jul 29, 2006 2:52 pm    Post subject: Reply with quote

peterpichler,

The version which will be released soon will feature URL rewriting and will make Ruby on Rails configuration easier and straightforward on Abyss Web Server.
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
Yami King
-


Joined: 08 Sep 2005
Posts: 120

PostPosted: Mon Jul 31, 2006 2:37 pm    Post subject: Reply with quote

When will this new version be available, well within 2 weeks or 1 month or less/more?
Back to top View user's profile Send private message Send e-mail
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Tue Aug 01, 2006 1:45 pm    Post subject: Reply with quote

Yami King,

The most likely is 1 month.
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
mobrien
-


Joined: 05 Oct 2004
Posts: 18

PostPosted: Mon Oct 02, 2006 10:03 pm    Post subject: It's been a month :-) Reply with quote

Any news on setting up Ruby on Rails?

I would love to see this in action. I am interested in trying out RoR!

--mobrien
_________________
---------------------------------------------------------
http://mobrien118.sytes.net
Back to top View user's profile Send private message Visit poster's website
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Tue Oct 03, 2006 11:18 am    Post subject: Re: It's been a month :-) Reply with quote

mobrien,

Work on URL rewriting is advancing quickly. We're going to give RoR a try with the new version and we'll post a tutorial about it as soon as it will be released as Beta.
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
buttons
-


Joined: 25 Apr 2004
Posts: 4
Location: UK

PostPosted: Wed Nov 29, 2006 4:01 pm    Post subject: Ruby/Rails/Rewriting/Tutorial Reply with quote

Hi, has anyone had success settting up rails with the beta version, would appreciate a list of rules for abyss webserver. Many thanks.
_________________
Mark Van Bellen
Back to top View user's profile Send private message Visit poster's website
TRUSTAbyss
-


Joined: 29 Oct 2003
Posts: 3752
Location: USA, GA

PostPosted: Wed Nov 29, 2006 10:48 pm    Post subject: Reply with quote

Yes. I've successfully got it working. Aprelium will post a installation tutorial
soon to show you how.
Back to top View user's profile Send private message Visit poster's website
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Thu Nov 30, 2006 2:26 pm    Post subject: Re: Ruby/Rails/Rewriting/Tutorial Reply with quote

buttons wrote:
Hi, has anyone had success settting up rails with the beta version, would appreciate a list of rules for abyss webserver. Many thanks.


We'll post a tutorial very soon (1 or 2 days).
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
aprelium-beta
-


Joined: 24 Jun 2004
Posts: 383

PostPosted: Sat Dec 02, 2006 3:45 pm    Post subject: Re: Ruby/Rails/Rewriting/Tutorial Reply with quote

"Adding support for Ruby on Rails" is now possible with the new version 2.4. Please refer to http://www.aprelium.com/forum/viewtopic.php?t=10133 for more information.
_________________
Beta Testing Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
darkxiiindp
-


Joined: 10 Feb 2007
Posts: 3

PostPosted: Sat Feb 10, 2007 6:13 pm    Post subject: Reply with quote

I can't get it working. Request to http://localhost/rails/info/properties responsed text in dispatch.fcgi
Code:

#!C:/RUBY/bin/ruby
#
# You may specify the path to the FastCGI crash log (a log of unhandled
# exceptions which forced the FastCGI instance to exit, great for debugging)
# and the number of requests to process before running garbage collection.
#
# By default, the FastCGI crash log is RAILS_ROOT/log/fastcgi.crash.log
# and the GC period is nil (turned off).  A reasonable number of requests
# could range from 10-100 depending on the memory footprint of your app.
#
# Example:
#   # Default log path, normal GC behavior.
#   RailsFCGIHandler.process!
#
#   # Default log path, 50 requests between GC.
#   RailsFCGIHandler.process! nil, 50
#
#   # Custom log path, normal GC behavior.
#   RailsFCGIHandler.process! '/var/log/myapp_fcgi_crash.log'
#
require File.dirname(__FILE__) + "/../config/environment"
require 'fcgi_handler'

RailsFCGIHandler.process!


However, WEBrick run fine.
Back to top View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Sat Feb 10, 2007 10:43 pm    Post subject: Reply with quote

darkxiiindp wrote:
I can't get it working. Request to http://localhost/rails/info/properties responsed text in dispatch.fcgi


That means that you have missed one of the instructions in http://www.aprelium.com/abyssws/ror.html . Please review them one by one and redo the configuration as explained there.
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
darkxiiindp
-


Joined: 10 Feb 2007
Posts: 3

PostPosted: Sun Feb 11, 2007 3:47 am    Post subject: Reply with quote

The instructions on http://www.aprelium.com/abyssws/ror.html are very clear. But I redo it few times and it doesnt work.

The only difference is I don't use http://www.aprelium.com/data/ror.exe. I download ruby, ruby gems binary on ruby-lang.org. And in system environtments I set PATH = C:\ruby\bin, set RUBYOPT = rubygems. Is there any things wrong? I don't like to use one click installer because it come with some things I dont want install.
Back to top View user's profile Send private message
TRUSTAbyss
-


Joined: 29 Oct 2003
Posts: 3752
Location: USA, GA

PostPosted: Sun Feb 11, 2007 4:38 am    Post subject: Reply with quote

Hello darkxiiindp,

The reason why it is not working is because you need to download the FastCGI for Ruby, otherwise it won't work. That is why Aprelium has created their own Ruby on Rails package.
Back to top View user's profile Send private message Visit poster's website
darkxiiindp
-


Joined: 10 Feb 2007
Posts: 3

PostPosted: Sun Feb 11, 2007 6:41 am    Post subject: Reply with quote

Thanks. I will try install it.
Back to top View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Sun Feb 11, 2007 11:31 pm    Post subject: Reply with quote

darkxiiindp wrote:
The instructions on http://www.aprelium.com/abyssws/ror.html are very clear. But I redo it few times and it doesnt work.

The only difference is I don't use http://www.aprelium.com/data/ror.exe. I download ruby, ruby gems binary on ruby-lang.org. And in system environtments I set PATH = C:\ruby\bin, set RUBYOPT = rubygems. Is there any things wrong? I don't like to use one click installer because it come with some things I dont want install.


The instructions work with our packaged RoR installer only. If you want to setup the components by your own, we'd say "good luck" because it's a time consuming and very risky task. Actually it took us a lot of time (and debugging) to glue everything together and make the RoR package work fine with FastCGI.
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
hdl_verde
-


Joined: 22 Mar 2007
Posts: 1

PostPosted: Thu Mar 22, 2007 10:24 am    Post subject: Redirecting or fcgi, no rewrite Reply with quote

Setup my site with radiant.

Have used the tutorial as well the given installation file. Still after setting home to public folder and deleting index.html, i only get listed the public folder. checked with installation of radiant, all ok. Am able to edit admin pages, but not browse created pages. This has happened with several of my rails applications, but still homepage gets not routed at expected.

Could there be something with the redirecting?

My fastcgi crash log shows:

# Logfile created on Wed Mar 21 11:13:22 +0100 2007 by logger.rb/1.5.2.9
[21/Mar/2007:11:13:22 :: 1616] Ignoring unsupported signal USR1.
[21/Mar/2007:11:13:22 :: 1616] Ignoring unsupported signal USR2.
[21/Mar/2007:11:13:22 :: 1616] Ignoring unsupported signal HUP.
[21/Mar/2007:11:13:22 :: 1616] Ignoring unsupported signal SIGTRAP.
[21/Mar/2007:11:13:22 :: 1616] starting
[22/Mar/2007:09:06:54 :: 3648] Ignoring unsupported signal USR1.
[22/Mar/2007:09:06:54 :: 3648] Ignoring unsupported signal USR2.
[22/Mar/2007:09:06:54 :: 3648] Ignoring unsupported signal HUP.
[22/Mar/2007:09:06:54 :: 3648] Ignoring unsupported signal SIGTRAP.
[22/Mar/2007:09:06:54 :: 3648] starting
[22/Mar/2007:09:13:16 :: 3804] Ignoring unsupported signal USR1.
[22/Mar/2007:09:13:16 :: 3804] Ignoring unsupported signal USR2.
[22/Mar/2007:09:13:16 :: 3804] Ignoring unsupported signal HUP.
[22/Mar/2007:09:13:16 :: 3804] Ignoring unsupported signal SIGTRAP.
[22/Mar/2007:09:13:16 :: 3804] starting
[22/Mar/2007:09:22:59 :: 1164] Ignoring unsupported signal USR1.
[22/Mar/2007:09:22:59 :: 1164] Ignoring unsupported signal USR2.
[22/Mar/2007:09:22:59 :: 1164] Ignoring unsupported signal HUP.
[22/Mar/2007:09:22:59 :: 1164] Ignoring unsupported signal SIGTRAP.
[22/Mar/2007:09:22:59 :: 1164] starting
[22/Mar/2007:09:34:29 :: 196] Ignoring unsupported signal USR1.
[22/Mar/2007:09:34:29 :: 196] Ignoring unsupported signal USR2.
[22/Mar/2007:09:34:29 :: 196] Ignoring unsupported signal HUP.
[22/Mar/2007:09:34:29 :: 196] Ignoring unsupported signal SIGTRAP.
[22/Mar/2007:09:34:29 :: 196] starting
[22/Mar/2007:09:41:19 :: 2932] Ignoring unsupported signal USR1.
[22/Mar/2007:09:41:19 :: 2932] Ignoring unsupported signal USR2.
[22/Mar/2007:09:41:19 :: 2932] Ignoring unsupported signal HUP.
[22/Mar/2007:09:41:19 :: 2932] Ignoring unsupported signal SIGTRAP.
[22/Mar/2007:09:41:19 :: 2932] starting
[22/Mar/2007:09:46:16 :: 1980] Ignoring unsupported signal USR1.
[22/Mar/2007:09:46:16 :: 1980] Ignoring unsupported signal USR2.
[22/Mar/2007:09:46:16 :: 1980] Ignoring unsupported signal HUP.
[22/Mar/2007:09:46:16 :: 1980] Ignoring unsupported signal SIGTRAP.
[22/Mar/2007:09:46:16 :: 1980] starting
[22/Mar/2007:09:51:05 :: 2300] Ignoring unsupported signal USR1.
[22/Mar/2007:09:51:05 :: 2300] Ignoring unsupported signal USR2.
[22/Mar/2007:09:51:05 :: 2300] Ignoring unsupported signal HUP.
[22/Mar/2007:09:51:05 :: 2300] Ignoring unsupported signal SIGTRAP.
[22/Mar/2007:09:51:05 :: 2300] starting
[22/Mar/2007:10:02:49 :: 2132] Ignoring unsupported signal USR1.
[22/Mar/2007:10:02:49 :: 2132] Ignoring unsupported signal USR2.
[22/Mar/2007:10:02:49 :: 2132] Ignoring unsupported signal HUP.
[22/Mar/2007:10:02:49 :: 2132] Ignoring unsupported signal SIGTRAP.
[22/Mar/2007:10:02:49 :: 2132] starting

any idea?
Back to top View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Sat Mar 24, 2007 2:39 pm    Post subject: Re: Redirecting or fcgi, no rewrite Reply with quote

hdl_verde,

The fastcgi.log file reports should be ignored if you are on Windows. They simply state that some signals that are only available on Unix systems will be ignored (since you're on Windows).

For the other problem, there are two possible solutions:
* Either edit your current rewrite rule and remove all the conditions expect the first one (REQUEST_FILENAME is not a file).
* Or delete all the rewrite rules and replace them with the following two:
- Rewrite rule 1:
* Virtual Path regular expression: ^/$
* Conditions: none
* If rule matches: perform an internal redirection to:
* Redirect to: /dispatch.fcgi?/
* Next action: stop matching
- Rewrite rule 2:
It should be the same one as described in http://www.aprelium.com/abyssws/ror.html .
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> FastCGI/CGI All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group