You should be able to start a fresh EC2 instance of Ubuntu and follow the instructions below to get a server with your preferred version of Ruby, nginx ready to delegate requests to Unicorn, and logrotate setup to keep your disk from filling up with log files. You will also have ruby-install
for installing new rubies and chruby
for switching between them. A .ruby-version
file will be added to the home directory of the user that runs this script.
- Start an EC2 instance using the latest Ubuntu image (as of 2015-06-18
ami-5189a661
for EBS, 64-bit SSD) - Copy the config files below into
/tmp
using the file names specified in the title. - Edit
/tmp/setup.sh
and change the variables at the top to match your setup - Make
/tmp/setup.sh
executable:chmod +x /tmp/setup.sh