-
-
Save qmx/902094 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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; | |
} |
This file contains hidden or 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
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