RubyLit - Ruby.del.litoral!
Nginx+Mongrel_cluster

[ [! include Menu] ]

In this article I will explain how outdoor fountains to run an app with ror ” Nginx ” http://wiki.codemongers.com as frontend and ” Mongrel ” http://mongrel.rubyforge.org/
and some other thingy.
madera plumber

hopkins vs pascal live streaming
call center system
dating filipina
philippine education
offset printing
dfw printing company
morales vs maidana
house for sale cebu
Website Design Company OH
hopkins vs pascal
carpet installation orange county
laminate flooring installation orange county
marquez vs pacquiao
pacquiao vs marquez live streaming
loan modification
ювелирные магазины

I use GNU / Linux Debian so I’m going to be based on your OS .
Let’s suppose we have a ror app , eg
instiki that is in the directory: / var / www / apps / instiki
And we have a static site in / var / www / site- personal ( can be a simple website with our portfolio eg . as in my case ) and we want to be available .
For this we will configure a virtual server for our
personal site, and other requests are redirected to the mongrel , at least for now .

welding-schools
welding-schools
Culinary Training
Culinary Schools
bcs championship tickets
daytona 500 tickets
st pierre vs diaz
khan peterson live streaming
agbeko vs mares live streaming

pacquiao vs marquez Philippine Travel Travel Asia home ideas Fifa World Cup pacquiao vs marquez tickets donaire vs narvaez cotto vs margarito donaire vs narvaez tickets cotto vs margarito live streaming gifts for girlfriend
gifts for boyfriend
gifts for boyfriends
valentine day gifts for her
gifts for a girlfriendessay writing guide cotto vs margarito tickets st-pierre vs diaz st-pierre vs diaz tickets pacquiao vs marquez velasquez vs dos santos velasquez vs dos santos tickets daytona NASCAR tickets
cosmetic dentistry
everett dental clinic
cosmetic dentist everett
dentist in everett
cosmetic dentist washington
cosmetic dentistry washington
culinary classes
davis vs evans tickets
2012 bcs national championship tickets
ortiz vs berto 2 tickets
condit vs diaz tickets
french doors
exterior french doors
interior french doors
exterior french door
french door
interior french door
personalized photo necklaces
picture jewelry
mom jewelry
photo jewelry
personalized rings
customized bracelets
personalized bracelets
customized bracelets
photo pendant necklace

  • The plan is as follows : +
  1. Install Nginx .
  2. Configure Nginx to publish our personal site ( static html ).
  3. Install mongrel cluster
  4. Configure mongrel cluster to serve our private ror app .
  5. Configure Nginx to like frontend for our app ror .

Then this is the structure set up more or less:

Nginx ( listens on port 80) and serves http://mi-site-personal.com

Nginx frontend for nuetra Mongrel

Mongrel ( listens on port 8000 and 8001) and serves http://wiki.otro-site.com
      
  • Install the Nginx : + *
     apt -get install nginx < / pre>
    
    * Prepare Nginx to serve our personal website : + *
    
    For this we will create a virtual server , _http : / / my -site- personal.com_"halloween contacts":http://www.discount-lenses.com/halloween-contact-lenses.php
    (Of course, you must have the domain)
    In this case act as Nginx web server.
    
    Edit the configuration file Nginx
    
    <pre> emacs / etc / nginx / nginx.conf < / pre>
    
    and add the following in http { } section :
    
    <pre>
    I add the virtual server for my site of my personal portfolio .
    http {
    
        # here are the other options ....
    
        server {
            listen 80;
            server_name my -site- personal.com ;
    
            location / {
                root / var / www / site -personal ;
                index index.html index.htm;
            }
        }
    < / pre>
    
    Now restart the nginx :
    
    <pre> / etc / init.d / nginx restart < / pre>
    
    after that if everything went well, ran our
    browser of choice and put the url _http : / / my -site- personal.com_ and we should see our site.
    
    * Install mongrel and mongrel cluster + *
    
    gem install mongrel as :
    
    <pre> gem install mongrel - include- dependencies < / pre>
    
    mongrel_cluster Installed as a gem :
    
    <pre> mongrel_cluster gem install - include- dependencies < / pre>
    
    Link to boot the machine (Debian ):
    <pre> ln- s \
            / usr/lib/ruby/gems/1.8/gems/mongrel_cluster-1.0.2/resources/mongrel_cluster \
            / etc / init.d / mongrel_cluster
    
        chmod + x / etc / init.d / mongrel_cluster
    
        / usr / sbin / update- rc.d defaults mongrel_cluster
    < / pre>
    
    Now let's set our _mongrel_cluster_ first create the directory for the settings:
    
    <pre> mkdir / etc / mongrel_cluster < / pre>
    
    Now, at the time the mongrel cluster bootee search this directory all the files configurarción _.yml_ , then we crearun symbolic link to the configuration file for our app ror ( Instiki in this case) :
    
    <pre>
     ln- s / var / www / apps / Instiki / config / mongrel_cluster.yml \
     mi_instiki.yml
    < / pre>
    
    This configuration file will be like this :
    
    <pre>
    ---
    cwd : / var / www / apps / Instiki
    port : 6500
    environment : production
    group: www -data
    user: www -data
    pid_file : log / mongrel.pid
    servers : 3
    < / pre>
    
    This means that you will run 3 instances
    mongrel to serve Instiki , starting from the port 6500, then 6501 and 6502 respectively.
    
    * References: *
    
    http://mongrel.rubyforge.org/