Created
June 28, 2010 14:43
-
-
Save mattsnyder/455934 to your computer and use it in GitHub Desktop.
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
-- Used Ubuntu 10.04 Lucid Canonical, ubuntu@ ami-2d4aa444 | |
sudo apt-get install ruby-full build-essential | |
ruby --version | |
sudo apt-get install apache2 apache2-mpm-prefork apache2-prefork-dev | |
sudo apt-get install rubygems | |
sudo gem install rubygems-update | |
sudo /var/lib/gems/1.8/bin/update_rubygems | |
sudo emacs ~/.bashrc | |
-- add the line below and save | |
export PATH=/var/lib/gems/1.8/bin:$PATH | |
sudo gem install rails | |
sudo apt-get install mysql-server mysql-client | |
sudo apt-get install libmysql-ruby libmysqlclient-dev | |
sudo gem install mysql | |
sudo gem install passenger -v2.2.11 | |
sudo apt-get install apache2-dev libapr1-dev libaprutil1-dev | |
sudo passenger-install-apache2-module | |
-- Create /etc/apache2/mods-available/passenger.load | |
LoadModule passenger_module /var/lib/gems/1.8/gems/passenger-2.2.11/ext/apache2/mod_passenger.so | |
-- Create /etc/apache2/mods-available/passenger.conf | |
PassengerRoot /var/lib/gems/1.8/gems/passenger-2.2.11 | |
PassengerRuby /usr/bin/ruby1.8 | |
-- Enable passenger | |
cd /etc/apache2/mods-enabled | |
sudo ln -s /etc/apache2/mods-available/passenger.load passenger.load | |
sudo ln -s /etc/apache2/mods-available/passenger.conf passenger.conf | |
-- add site to sites-available and link in sites-enabled | |
-- generate key to add to github account | |
ssh-keygen -t rsa -C "aws-devserver" | |
sudo apt-get -y install git-core | |
-- Integrity | |
sudo gem install bundler | |
sudo apt-get install libxslt-dev libxml2-dev | |
git clone git://github.com/integrity/integrity | |
cd integrity | |
git checkout -b deploy v21 | |
bundle install | |
bundle lock | |
rake db | |
sudo gem install thin | |
# create and enable virtual host as per Integrity doc, then enable reverse proxy in apache (see following) | |
cd /etc/apache2/mods-enabled/ | |
sudo ln -s ../mods-available/proxy.load proxy.load | |
sudo ln -s ../mods-available/proxy.conf proxy.conf | |
sudo ln -s ../mods-available/proxy_http.load proxy_http.load | |
sudo ln -s ../mods-available/proxy_html.load proxy_html.load | |
sudo ln -s ../mods-available/proxy_html.conf proxy_html.conf | |
sudo apt-get install libapache2-mod-proxy-html | |
#install rmagick | |
sudo apt-get install imagemagick --fix-missing | |
sudo apt-get install libmagick9-dev | |
sudo gem install rmagick |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment