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-5189a661for EBS, 64-bit SSD) - Copy the config files below into
/tmpusing the file names specified in the title. - Edit
/tmp/setup.shand change the variables at the top to match your setup - Make
/tmp/setup.shexecutable:chmod +x /tmp/setup.sh