This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# One script to rule them all 2: Unicorn Strikes back | |
# | |
# Install Nginx from source and Install Unicorn | |
# Then configure such | |
# | |
# Author: Daniel Reslie | |
# Date: 2/21/2011 | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# the majority of this script originally came from the book Deploying Rails Applications by Ezra Zygmuntowicz, Bruce Tate, and Clinton | |
# Begin. I don't know the copyright status of the script so guys please don't sue me. | |
# user and group to run as | |
user daniel daniel; | |
# Nginx uses a master -> worker configuration. | |
# number of nginx workers, 4 is a good minimum default | |
# when you have multiple CPU cores I have found 2-4 workers | |
# per core to be a sane default. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# Install ruby on rails | |
# | |
# Author : Daniel Reslie | |
# Date : 2/15/2011 | |
# | |
RUBY_VERSION = 1.9.2-p136 | |
LOCAL_USER = daniel |