Results 1 to 5 of 5

Thread: ruby on rails

  1. #1
    Join Date
    Nov 2006
    Beans
    103

    ruby on rails

    Hi,

    If I have an ubuntu server that already including php, apache and mysql and I want to add ruby on rails.

    can I do it without removing the php?

    do you know about good tutorials about ruby on rails on ubuntu server?
    I have found tutorials but since I am using ubuntu server I think it will be easier for me to learn for a tutorial that is directed to ubuntu server?

    anyway if I want to add ruby on rial to a server that already include php, what should I do?

  2. #2
    Join Date
    Apr 2012
    Beans
    29

    Re: ruby on rails

    Quote Originally Posted by oren tal View Post
    Hi,

    If I have an ubuntu server that already including php, apache and mysql and I want to add ruby on rails.

    can I do it without removing the php?

    do you know about good tutorials about ruby on rails on ubuntu server?
    I have found tutorials but since I am using ubuntu server I think it will be easier for me to learn for a tutorial that is directed to ubuntu server?

    anyway if I want to add ruby on rial to a server that already include php, what should I do?

    of u can, PHP has nothing to do with RUBY.
    If you want to run a RoR app, just create a new vhost and add /edit these directives as follows:

    Code:
    <Directory /var/www/RoR/public>
                    Options Indexes FollowSymLinks MultiViews ExecCGI
                    AllowOverride All
                    Order allow,deny
                    allow from all
                    AddHandler cgi-script .cgi
    </Directory>

  3. #3
    Join Date
    Jul 2010
    Location
    Michigan, USA
    Beans
    2,106
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: ruby on rails

    I'd suggest you use Passenger Phusion with Apache (or Nginx). Here's pretty good directions to get you running. An Apache Passenger vhost entry can be as simple as this.
    Code:
    <VirtualHost *:80>
      ServerName www.domain.com
      DocumentRoot /var/www/website/public/
    </VirtualHost>
    Also, if you're trying to learn Rails, this is a good place to start. It covers all of the aspects of getting started developing in Rails correctly.
    Last edited by rubylaser; May 6th, 2012 at 11:59 PM.

  4. #4
    Join Date
    Apr 2012
    Beans
    29

    Re: ruby on rails

    Quote Originally Posted by rubylaser View Post
    I'd suggest you use Passenger Phusion with Apache (or Nginx). Here's pretty good directions to get you running. An Apache Passenger vhost entry can be as simple as this.
    Code:
    <VirtualHost *:80>
      ServerName www.domain.com
      DocumentRoot /var/www/website/public/
    </VirtualHost>
    Also, if you're trying to learn Rails, this is a good place to start. It covers all of the aspects of getting started developing in Rails correctly.

    i think Passenger is more slowly solution.

  5. #5
    Join Date
    Jul 2010
    Location
    Michigan, USA
    Beans
    2,106
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: ruby on rails

    Based on what? That's just not true. Passenger is capable of handling very large work loads when coupled with Ruby Enterprise Edition. If you want the ultimate in speed, you shouldn't be using Apache for Rails anyways. You'd want to use Nginx + Unicorn, but that can be a little complicated for someone to get started developing on Rails. Passenger Phusion is dead simple and still quick enough for most work loads.
    Last edited by rubylaser; May 7th, 2012 at 05:50 PM.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •