Skip to content

Instantly share code, notes, and snippets.

@qmx
Forked from dcrec1/centos
Created April 4, 2011 18:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save qmx/902094 to your computer and use it in GitHub Desktop.
Save qmx/902094 to your computer and use it in GitHub Desktop.
gzip on;
gzip_types text/plain text/xml text/css application/javascript application/x-javascript;
location ~* \.(ico|css|js|gif|jp?g|png|swf)(\?[0-9]+)?$ {
expires max;
}
adduser deploy
mkdir /var/local/apps
chown deploy /var/local/apps
apt-get update
apt-get install rubygems1.8 ruby-dev build-essential libopenssl-ruby libssl-dev zlib1g-dev libreadline5-dev libmysql-ruby1.8 libmysqlclient-dev libpgsql-ruby postgresql-client libsqlite3-dev libpq-dev git-core libxml2-dev libxslt-dev libcurl4-openssl-dev strace htop -y
cd /tmp/ && wget http://rubyenterpriseedition.googlecode.com/files/ruby-enterprise_1.8.7-2011.03_amd64_ubuntu10.04.deb && dpkg -i ruby-enterprise_1.8.7-2011.03_amd64_ubuntu10.04.deb
gem install inploy --no-ri --no-rdoc
passenger-install-nginx-module
su deploy
ssh-keygen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment