# Create a project directory
/Opt/logs/TV-cibn-CMS
# Install rbenv and Ruby 1.9.3 IN RUBY
# Install and compile related packages
Yum install-y GCC OpenSSL-devel libyaml-devel Readline-devel zlib-devel
Su-Ruby #/home/Ruby
# Install rbenv
Git clone https://github.com/sstephenson/rbenv.git ~ /. Rbenv
Echo 'export Path = "$ home/. rbenv/bin: $ path" '>> ~ /. Bash_profile
Echo 'eval "$ (rbenv init-)" '> ~ /. Bash_profile
.. Bash_profile
# Install rbenv-install and Ruby 1.9.3-p545
Git clone https://github.com/sstephenson/ruby-build.git ~ /. Rbenv/plugins/ruby-build
Mkdir ~ /. Rbenv/Cache
Cd ~ /. Rbenv/cache & wget http://ruby.taobao.org/mirrors/ruby/1.9/ruby-1.9.3-p545.tar.gz
Cd ~ & Rbenv install 1.9.3-p545
# Replacing the rubygems Source
Gem sources -- remove http://rubygems.org/
Gem sources-A https://ruby.taobao.org/
Gem sources-l
# Install bundler
Gem install bundler
# Install the mysql2 dependency Library
# Yum install mysql-devel
Yum install mysql-devel-MS
Deploy Ruby servers