开发者

How to configure ruby on rails with Apache

i have strugle in connection between J2me and ruby on rails under Webrick server... dats why i need configure with apache..i saw some tutorials about c开发者_如何学Goonfiguring..but it's not working..


You need to install Phusion Passenger: http://www.modrails.com/

Also, for performance improvement, do install REE: http://www.rubyenterpriseedition.com/


What environment are you coming from? Unix, Mac, Windows? Let's assume you're using some Unix variant, as you should, and Apache2 is already properly installed:

1 - install phusion passenger: $ gem install passenger

2 - install passenger-apache2-module: $ passenger-install-apache2-module

Be sure to read what the passenger-install-apache2-module command output is telling you, in the end it will give you some lines you have to put in some apache configuration files, if you miss that, it won't work. At all.

3 - Edit your vhosts.conf file (under /etc/apache2/) to define a hostname for your application, point to your application's public folder, etc. VirtualHost examples

4 - Profit.

Commands listed under 1. and 2. might need admin privileges, it all depends on how your environment is set.

WebRick is not for production environments at all, in fact, it's not really good for development either, if you intend on doing some slightly more complex stuff with your rails applications. Other than that, you didn't really give enough detail about your problem, so I hope this answer at least points you in the right direction.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜