lannon / ruby-passenger-nginx-installer

One line installer for Ruby 1.9.3, Phusion Passenger and Nginx on Ubuntu 12.04 LTS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

One line installer for Ruby 1.9.3, Phusion Passenger and Nginx on Ubuntu 12.04 LTS

This script will install an Nginx/Passenger/Ruby web stack to run Rails apps. This was written for and tested with Ubuntu 12.04 LTS on Amazon EC2.

I decided to consolidate everything into a single line as a challenge for myself after having to setup this server environment many times. This should speed things up. :)

Once you start up an EC2 instance, log in and run this one command:

sudo apt-get install -y git && git clone git://github.com/ballistiq/ruby-passenger-nginx-installer.git && bash ./ruby-passenger-nginx-installer/install.sh

It will run through an auto install process.

Once it is finished, you should have Nginx running and you can start adding your Rails apps.

Enjoy!

Leonard Teo
CEO, Developer
Ballistiq

What this will install

  • Ruby 1.9.3 (p429) from source with bundler
  • Nginx (including init.d and logrotate tasks)
  • Phusion Passenger
  • ImageMagick (which we use all the time for things like Paperclip)

Starting/Stopping Nginx

sudo service nginx start
sudo service nginx stop
sudo service nginx restart

Credits

  • The base of this came from Chris Oliver.
  • The Nginx start/stop init.d script came from Linode.
  • The Nginx ubuntu log rotation config came from Mell Zamora

About

One line installer for Ruby 1.9.3, Phusion Passenger and Nginx on Ubuntu 12.04 LTS


Languages

Language:Shell 100.0%