Created
July 18, 2012 22:20
-
-
Save morsik/3139301 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
#!/bin/bash | |
MAKEOPTS="-j8" | |
RUBYDIR=${HOME}/ruby | |
einfo() { | |
echo -e "\033[1;32m * \033[1;37m${1}\033[0m" | |
} | |
rm -rf ~/tmp | |
mkdir ~/tmp | |
einfo "installing ruby-1.9.2..." | |
cd ~/tmp | |
wget http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.2-p290.tar.gz | |
tar xfvz ruby-1.9.2-p290.tar.gz | |
cd ruby-1.9.2-p290 | |
./configure --prefix=${RUBYDIR} | |
make ${MAKEOPTS} | |
make install | |
export PATH=${RUBYDIR}/bin:${PATH} | |
echo $PATH | |
einfo "installing rubygems-1.8.10..." | |
cd ~/tmp | |
wget http://production.cf.rubygems.org/rubygems/rubygems-1.8.10.tgz | |
tar xzvf rubygems-1.8.10.tgz | |
cd rubygems-1.8.10 | |
ruby setup.rb | |
einfo "updating gems..." | |
gem sources -a http://rubygems.org | |
gem update --system | |
echo "gem: --no-rdoc --no-ri" > ~/.gemrc | |
einfo "installing gitlab..." | |
cd ~ | |
git clone git://github.com/gitlabhq/gitlabhq.git | |
cd gitlabhq/ | |
einfo "installing gitlab dependencies..." | |
gem install bundler | |
bundle | |
einfo "configuring gitlab..." | |
bundle exec rake db:setup RAILS_ENV=production | |
bundle exec rake db:seed_fu RAILS_ENV=production |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment