參考官網:https://github.com/teambox/teambox/wiki/Installing-locallymysql
安裝GITgit
yum install git -ygithub
安裝RVMsql
\curl -sSL https://get.rvm.io | bash -s stable --ruby 數據庫
安裝完後是比較新的版本,換成1.8.7的ruby
rvm install ruby-1.8.7bash
rvm listcurl
安裝: rubygemsfetch
wget -c http://production.cf.rubygems.org/rubygems/rubygems-2.1.11.tgzurl
ruby setup.rb
配置淘寶的源
sed -i 's!cache.ruby-lang.org/pub/ruby!ruby.taobao.org/mirrors/ruby!' /usr/local/rvm/config/db
gem sources --remove https://rubygems.org/
gem sources -a http://ruby.taobao.org/
提示出錯
Error fetching http://ruby.taobao.org/:
no such name (http://ruby.taobao.org/specs.4.8.gz)
修改DNS爲114.114.114.114從新添加
gem sources -l
安裝BUNDLER
gem install bundler
安裝MYSQL
yum install mysql mysql-server mysql-devel -y
安裝ImageMagick
yum install ImageMagick ImageMagick-devel -y
下載程序
git clone git://github.com/teambox/teambox.git
cd teambox
git checkout master
bundle install
而後看錯誤提示,缺啥補啥了
yum install .....
gem install .....
繼續bundle install
初始化數據庫
bundle exec rake db:create db:schema:load RAILS_ENV=development
啓動
rails server -e development