github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

hartcode / serverjuice

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 32
    • 3
  • Source
  • Commits
  • Network (3)
  • Issues (1)
  • Downloads (0)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (1)
    • master ✓
  • Tags (0)
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

Generates a script for setting up an Ubuntu VPS for Rails deployment using Apache 2, Passenger and MySQL — Read more

  cancel

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

Fixed warning message due to conflicting here-doc markers 
hartcode (author)
Wed Sep 02 15:47:31 -0700 2009
commit  83a916096e41e1b5c7a418f2f15b8cbf8a19a990
tree    6736670ce577802f01b4ff4c9f6f7a42d2348a5e
parent  f1d28206e5f2d7fc83e48dace5beb5f396e2ffb1
serverjuice /
name age
history
message
file LICENSE Loading commit data...
file README
file serverjuice
file serverjuice.rb
file serverjuice_test.rb
README
This is a little mini tool to assist with the initial configuration of an
Ubuntu VPS for Rails deployment using Passenger, Apache 2 and MySQL.

It has been tested on a linode.com VPS with their Ubuntu 9.04 distribution.


To use it, first clone the git repository:

  git clone git://github.com/sansdev/serverjuice.git

Then run the command with the hostname you wish to configure your VPS with:

  ./serverjuice totallyninja >serverjuice.sh

Optionally you can also specify a mysql root password:

  ./serverjuice totallyninja sosecure >serverjuice.sh


The tool simply generates a shell script on standard out. The safest way to
use the output is to collect it in a file and copy it to your blank server
where you can run it as root.

If you're feeling brave you can have the tool run the script directly on a
server:

  ./serverjuice --deploy mycoolserver.com totallyninja

This will ssh as root to mycoolserver.com and run the generated script.


I wrote this for Rails Rumble 2008 to save me some time on server setup.
There is a lot more that this script could do, but for now this is all I need.


Why would I write something like this when there are tools like deprec and
sprinkle?

There are two main reasons why I prefer this approach:

a) Transparency: Instead of running a tool locally that goes off and does
   various things on a server, you get a complete shell script that does
   the entire setup in one run. You can inspect the script, modify it, pick
   out parts of it, do anything you like with it before you actually run it.

b) Clarity: Because I rarely do slice deployment and system maintenance, it's
   important that I can refer back to what the setup process did a year later
   when I need to change something. Instead of having to read through the
   code of a tool to figure out exactly what it did when I ran it, I can just
   keep the deploy script and refer to it later on, or even re-run parts of it
   as I see fit.


This tool is open source and you are welcome to modify it, add to it, fork it,
play with it, and so on. Feel free to send me any improvements you make.


Author:

    Daniel Aborg


Contributors:

    Dan Pickett     - mysql root password and newer ruby version
Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server