Created
March 23, 2014 04:38
-
-
Save ch1ago/9718872 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
echo "***** UPDATE *****" | |
apt-get -yq update | |
echo "***** INSTALL PACKAGES *****" | |
apt-get -yq install curl git-core python g++ make python-software-properties libqt4-dev build-essential bison openssl libreadline6 libreadline6-dev zlib1g zlib1g-dev libssl-dev libyaml-dev libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev libmagickwand-dev imagemagick | |
apt-get -yq install xvfb firefox | |
echo "***** DOWNLOADING *****" | |
wget -N 'http://cache.ruby-lang.org/pub/ruby/2.1/ruby-2.1.1.tar.gz' | |
tar zxf 'ruby-2.1.1.tar.gz' | |
echo "tar zxf" | |
cd /home/deployer/setup/ruby/ruby-2.1.1 | |
echo "***** CONFIGURE *****" | |
./configure | |
echo "***** MAKE *****" | |
make --silent | |
echo "***** INSTALL *****" | |
make install --silent | |
echo "***** RUBYGEMS *****" | |
gem update --system | |
echo "***** CHECK *****" | |
echo ruby -v | |
echo gem -v | |
gem install bundler --no-rdoc --no-ri | |
gem install backup --no-rdoc --no-ri | |
echo "***** MYSQL/POSTGRES/RUBY PACKAGES *****" | |
apt-get -yq install librmagick-ruby1.8 librmagick-ruby-doc libfreetype6-dev xml-core | |
apt-get -yq install libpq-dev | |
gem install pg --no-rdoc --no-ri | |
echo "***** DONE *****" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment