安装Rails3

原创
2012/02/07 11:07
阅读数 136
1.安装Ruby1.9
2.安装DevKit
  cd <DEVKIT_INSTALL_DIR>
  ruby dk.rb init
  ruby dk.rb install
3.升级RubyGems版本
  gem update --system
4.安装Rails
  gem install rails --no-ri --no-rdoc

安装测试
  新建目录 projects
  cd projects
  rails new demo
  检查依存包
  bundle install
  =>Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed.
启动服务
  rails server
  => Booting WEBrick
访问
  http://localhost:3000
展开阅读全文
加载中
点击引领话题📣 发布并加入讨论🔥
0 评论
0 收藏
0
分享
返回顶部
顶部