当我进入
rails new blog
它返回
exist
identical README.rdoc
identical Rakefile
identical config.ru
identical .gitignore
identical Gemfile
exist app
identical app/assets/images/rails.png
identical app/assets/javascripts/application.js
identical app/assets/stylesheets/application.css
identical app/controllers/application_controller.rb
identical app/helpers/application_helper.rb
exist app/mailers
exist app/models
identical app/views/layouts/application.html.erb
identical app/mailers/.gitkeep
identical app/models/.gitkeep
exist config
identical config/routes.rb
identical config/application.rb
identical config/environment.rb
exist config/environments
identical config/environments/development.rb
identical config/environments/production.rb
identical config/environments/test.rb
exist config/initializers
identical config/initializers/backtrace_silencers.rb
identical config/initializers/inflections.rb
identical config/initializers/mime_types.rb
conflict config/initializers/secret_token.rb
Overwrite /Users/user/blog/config/initializers/secret_token.rb? (enter "h" for help) [Ynaqdh]
并且无论我点击 y/yes 还是 n/no 它都会安装捆绑包,并且
cd blog
命令通过-但是当我尝试时
rails server
我明白了
[2012-06-06 19:21:59] WARN Could not determine content-length of response body. Set content-length of the response or set Response#chunked = true
[2012-06-06 19:22:00] WARN 无法确定响应正文的内容长度。设置响应的内容长度或设置 Response#chunked = true
我在某个地方找到了你应该安装“瘦”gemfile 来解决这个问题,然后运行
rails server thin
然后返回
/Users/user/.rbenv/versions/1.9.3-p125/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/handler/thin.rb:1:in `require': cannot load such file -- thin (LoadError)
from /Users/user/.rbenv/versions/1.9.3-p125/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/handler/thin.rb:1:in `<top (required)>'
from /Users/user/.rbenv/versions/1.9.3-p125/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/handler.rb:20:in `const_get'
from /Users/user/.rbenv/versions/1.9.3-p125/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/handler.rb:20:in `block in get'
from /Users/user/.rbenv/versions/1.9.3-p125/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/handler.rb:20:in `each'
from /Users/user/.rbenv/versions/1.9.3-p125/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/handler.rb:20:in `inject'
from /Users/user/.rbenv/versions/1.9.3-p125/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/handler.rb:20:in `get'
from /Users/user/.rbenv/versions/1.9.3-p125/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/server.rb:269:in `server'
from /Users/user/.rbenv/versions/1.9.3-p125/lib/ruby/gems/1.9.1/gems/railties-3.2.5/lib/rails/commands/server.rb:59:in `start'
from /Users/user/.rbenv/versions/1.9.3-p125/lib/ruby/gems/1.9.1/gems/railties-3.2.5/lib/rails/commands.rb:55:in `block in <top (required)>'
from /Users/user/.rbenv/versions/1.9.3-p125/lib/ruby/gems/1.9.1/gems/railties-3.2.5/lib/rails/commands.rb:50:in `tap'
from /Users/user/.rbenv/versions/1.9.3-p125/lib/ruby/gems/1.9.1/gems/railties-3.2.5/lib/rails/commands.rb:50:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'
但是随后“ localhost :3000 ”显示一个糟糕的页面,说它找不到该页面,但是当我输入常规服务器命令时,该页面是完整的,但警告阻止我继续前进。
有任何想法吗?
谢谢Dty-注意n00bs,您需要在单独的窗口中运行服务器和代码(我现在感觉很慢)