0
I Use This!
Activity Not Available

Project Summary

Summarymrnginx stands for mongrel_cluster rails nginx. It's a helper script which makes configuring multiple Rails sites with mongrel_cluster and nginx ridiculously easy.

Currently, this script is configured for Ubuntu Server, however with a little tweaking it should work on other distros.

Here's what it does:

creates mongrel_cluster YAML configuration file symlinks this file to /etc/mongrel_cluster creates nginx vhost file overwrites (and backs up) nginx configuration file (/etc/nginx/nginx.conf) restarts mongrel_cluster restarts nginx Before it does anything, it will list what it is about to do and await your confirmation.

Prerequisitesrubygems (to install the following gems) apt-get rubygems (on Ubuntu) mongrel gem install mongrel mongrel_cluster gem install mongrel_cluster nginx apt-get nginx Example usagecd /var/www/apps/myrailsapp
mrnginx -s myrailsapp.com,myrailsapp.netThat's it! (Except DNS configuration of course).

Note: you'll probably need to run it as root (or sudo mrnginx).

mrnginx -h will display this:

Usage: mrnginx [options]

Specific options:
-e, --environment ENV Rails environment to run as
[default development]
-p, --port PORT Starting port to bind as
[default next unused port after 8000 + 10]
-a, --address ADDR Address to bind to
[default 127.0.0.1]
-c, --chdir PATH Change to dir before starting (will be expanded)
[default current working directory]
-s DOMAIN1,DOMAIN2 Domain(s) for virtual host
--server-names [default localhost]
-N, --num-servers INT Number of Mongrel servers
[default 3]
--user User to run as.
[default www-data]
--group Group to run as.
[default www-data]

Common options:
-h, --help Show this message
-v, --version Show versionAuthorZubin Henner

Tags

deployment mongrel mongrel_cluster nginx rails ruby rubyonrails ubuntu

In a Nutshell, mrnginx...

 No code available to analyze

Open Hub computes statistics on FOSS projects by examining source code and commit history in source code management systems. This project has no code locations, and so Open Hub cannot perform this analysis

Is this project's source code hosted in a publicly available repository? Do you know the URL? If you do, click the button below and tell us so that Open Hub can generate statistics! It's fast and easy - try it and see!

Add a code location

GNU General Public License v3.0 or later
Permitted

Place Warranty

Use Patent Claims

Commercial Use

Modify

Distribute

Forbidden

Sub-License

Hold Liable

Required

Distribute Original

Disclose Source

Include Copyright

State Changes

Include License

Include Install Instructions

These details are provided for information only. No information here is legal advice and should not be used as such.

All Licenses

This Project has No vulnerabilities Reported Against it

Did You Know...

  • ...
    Black Duck offers a free trial so you can discover if there are open source vulnerabilities in your code
  • ...
    check out hot projects on the Open Hub
  • ...
    in 2016, 47% of companies did not have formal process in place to track OS code
  • ...
    by exploring contributors within projects, you can view details on every commit they have made to that project

 No code available to analyze

Open Hub computes statistics on FOSS projects by examining source code and commit history in source code management systems. This project has no code locations, and so Open Hub cannot perform this analysis

Is this project's source code hosted in a publicly available repository? Do you know the URL? If you do, click the button below and tell us so that Open Hub can generate statistics! It's fast and easy - try it and see!

Add a code location

Community Rating

Be the first to rate this project
Click to add your rating
   Spinner
Review this Project!
Sample ohloh analysis