So, linode bailed (http://yfrog.com/kkrk4p) while I was in the middle of working on the band website (http://www.thebonscotts.com)
That annoyed me somewhat.
Here's what I did to move it off linode in under one hour (except for DNS TTLs, obvs):
- logged in to my (already extant) AWS account
- created an elastic IP
- put in a request for a t1.micro spot instance in ap-southeast-1 (have found it to have the least latency for .au clients) Note: spot instances use a 'bidding' mechanism and might go away. Working around this atm by specifying the max bid price as 2x the maximum price in the history. Will re-visit with a 'reserved' yearly instance soon.
- logged in to linode
- pointed the thebonscotts.com / www.thebonscotts.com A records to the new elastic IP
- waited ~5min for the spot instance to come up
- associated the elastic IP with the spot instance
I then logged in to the instance, ran ssh-keygen
to create a ssh
key, and added that key to my github project's deploy keyset.
I then ran these commands:
sudo apt-get update
sudo apt-get install git-core
wget http://rubyenterpriseedition.googlecode.com/files/ruby-enterprise_1.8.7-2011.03_amd64_ubuntu10.04.deb
sudo dpkg --install ruby-enterprise_1.8.7-2011.03_amd64_ubuntu10.04.deb
sudo gem update --system
sudo gem install bundler --no-rdoc --no-ri
sudo gem install passenger --no-rdoc --no-ri
sudo apt-get install apache2-prefork-dev
sudo apt-get install build-essential libcurl4-openssl-dev zlib1g-dev apache2-mpm-prefork
sudo /usr/local/bin/passenger-install-apache2-module
sudo vim /etc/apache2/sites-available/default
# above I copied in the sections from the passenger install
git clone [email protected]:<REDACTED>
sudo apt-get install memcached
sudo update-rc.d memcached defaults
sudo update-rc.d apache2 defaults
cd bonscotts/
bundle install
sudo /etc/init.d/apache2 restart
Additional: this was using the standard canonical 10.04 ubuntu image.