This repository has been archived by the owner on Jul 30, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 42
InstallationCN
hakehuang edited this page May 24, 2011
·
4 revisions
目前,BluMine支持在*nix系统上安装,例如, Mac OS X或ubuntu。windows平台上的安装,没有经过测试,可能会出现某些依赖的gem无法安装的情况。
目前你需要从源代码安装BluMine, 步骤如下:
- Clone源代码:
git clone git://github.com/daqing/blumine.git
- 安装所需要的gem:
bundle install
- 安装数据库:
rake db:migrate
- 启动测试服务器:
rails server thin
- Rails版本问题
BluMine使用的是最新版的Rails(3.0.7),如果你的平台安装过Rails,但没有升级到最新版,那么你需要运行bundle update rails
,来更新Rails版本,然后再运行bundle install
来安装其他的gem。
sudo apt-get install git-core git git clone git://github.com/daqing/blumine.git cd blumine sudo apt-get install ruby sudo apt-get install rubygems sudo gem install rubygems-update sudo gem install rails --pre export PATH=/var/lib/gems/1.8/bin:$PATH bundle update rake db:migrate ###test run command in server #rails server /var/lib/gems/1.8/gems/railties-3.1.0.beta1/lib/rails/script_rails_loader.rb:11: warning: Insecure world writable dir /var/lib/gems/1.8/bin in PATH, mode 040777 /var/lib/gems/1.8/gems/bundler-1.0.13/lib/bundler/runtime.rb:136: warning: Insecure world writable dir /var/lib/gems/1.8/bin in PATH, mode 040777 => Booting WEBrick => Rails 3.0.7 application starting in development on http://0.0.0.0:3000 => Call with -d to detach => Ctrl-C to shutdown server [2011-05-20 18:43:19] INFO WEBrick 1.3.1 [2011-05-20 18:43:19] INFO ruby 1.8.7 (2010-06-23) [x86_64-linux] [2011-05-20 18:43:19] INFO WEBrick::HTTPServer#start: pid=7641 port=3000 # in client browser enter address http://:3000/
bug temp fix for "Undefined method 'task' if you are using rake 0.9.0" 1.gem uninstall rake -v 0.9 (add sudo unless you use rvm) 2. add to your Gemfile: gem 'rake', '~> 0.8.7' 3. and then run: bundle update Refer: http://stackoverflow.com/questions/5287121/undefined-method-task-using-rake-0-9-0-beta-4