Skip to content

Instantly share code, notes, and snippets.

@seanhandley
Last active August 29, 2015 13:56
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 seanhandley/9328060 to your computer and use it in GitHub Desktop.
Save seanhandley/9328060 to your computer and use it in GitHub Desktop.
Set up the Dev Stack for Cent OS 6.5
curl https://gist.githubusercontent.com/seanhandley/7da4a5bdbde2c51a88ce/raw/3da49382c0a17dfc0220924106e5886dad78b2ed/.bashrc > ~/.bashrc
source ~/.bashrc
sudo yum update -y
sudo yum groupinstall -y 'Development tools'
sudo yum -y install openldap-devel mysql-server mysql-devel sqlite-devel sqlite openssl openssl-devel readline-devel readline compat-readline5 libxml2-devel libxslt-devel libcurl curl wget git
cd
test -d ~/.rbenv || git clone https://github.com/sstephenson/rbenv.git ~/.rbenv
test -d ~/.ruby-build || git clone https://github.com/sstephenson/ruby-build.git ~/.ruby-build
cd ~/.ruby-build && sudo ./install.sh
rbenv install 1.9.3-p545
rbenv rehash
rbenv global 1.9.3-p545
source ~/.bashrc
gem install rubygems-update
gem update --system
echo 'gem: --no-rdoc --no-ri' >> ~/.gemrc
gem install bundler
curl http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm > epel-release-6-8.noarch.rpm
curl http://rpms.famillecollet.com/enterprise/remi-release-6.rpm > remi-release-6.rpm
sudo rpm -Uvh remi-release-6*.rpm epel-release-6*.rpm
sudo yum -y install redis
rm -f remi-release-6*.rpm epel-release-6*.rpm
sudo chkconfig redis on
sudo service redis start
sudo chkconfig --level 2345 mysqld on
sudo service mysqld start
source ~/.bashrc
test -d ~/Code || mkdir ~/Code/
cd ~/Code/
test -d ~/Code/wombat || git clone git@github.com:melbourne/wombat.git
test -d ~/Code/order_system || git clone git@github.com:melbourne/order_system.git
test -d ~/Code/ultrafire || git clone git@github.com:melbourne/ultrafire.git
cd wombat
bundle install
rake db:setup
rake db:test:prepare
rake wombat:setup_possum_test_db
cd ~/Code/order_system
bundle install
rake db:setup
rake db:test:prepare
cd ~/Code/ultrafire
bundle install
rake db:setup
rake db:test:prepare
echo ''
echo "Hooray! You're all set up."
echo ''
echo 'Now identify yourself to Git:'
echo '$ git config --global user.name "YOUR NAME"'
echo '$ git config --global user.email "YOUR@EMAIL.COM"'
echo ''
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment