public
Last active — forked from dcrec1/centos

  • Download Gist
ubuntu_rubyee_187_passenger_nginx.sh
Shell
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
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 -y
 
cd /tmp/ && wget http://rubyforge.org/frs/download.php/71096/ruby-enterprise-1.8.7-2010.02.tar.gz
 
tar xvzf ruby-enterprise-1.8.7-2010.02.tar.gz
 
./ruby-enterprise-1.8.7-2010.02/installer
 
export PATH=/opt/ruby-enterprise-1.8.7-2010.02/bin:$PATH
 
gem update --system
gem install bundler inploy passenger --no-ri --no-rdoc
 
passenger-install-nginx-module
 
ln -s /opt/ruby-enterprise-1.8.7-2010.02/bin/bundle /usr/local/bin/
ln -s /opt/ruby-enterprise-1.8.7-2010.02/bin/rake /usr/local/bin/
ln -s /opt/ruby-enterprise-1.8.7-2010.02/bin/ruby /usr/local/bin/
 
su deploy
 
ssh-keygen

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.