今天从github上clone了一个rails项目下来准备运行它,输入:rails server
提示:
Usage:
rails new APP_PATH [options]
Options:
-J, [--skip-javascript] # Skip JavaScript files
[--dev] # Setup the application with Gemfile pointing to your Rails checkout
[--edge] # Setup the application with Gemfile pointing to Rails repository
-G, [--skip-git] # Skip Git ignores and keeps
-m, [--template=TEMPLATE] # Path to an application template (can be a filesystem path or URL)
-

在尝试运行Rails 4.0.0项目时遇到版本不匹配问题,因为本地Rails版本为3.2.13。解决方法包括升级Rails版本至4.0.0或复制旧版rails脚本。如果遇到gem找不到的问题,运行`bundle install`。在数据库迁移时,可能遇到错误,通过`rake db:migrate RAILS_ENV=development`命令解决,确保数据库更新。
最低0.47元/天 解锁文章
113

被折叠的 条评论
为什么被折叠?



