简体   繁体   English

Rails Server命令未启动服务器

[英]rails server command not starting server

I am new to Rails and am trying to run an application on Windows 8. Whenever I try to start the server using "rails server", it gives me this: 我是Rails的新手,正在尝试在Windows 8上运行应用程序。每当我尝试使用“ rails server”启动服务器时,它都会给我以下信息:

Usage:
  rails new APP_PATH [options]
Options:
  -r, [--ruby=PATH]     # Path to the Ruby binary of your choice

etc, I think you get the picture. 等,我想你明白了。 I have gotten the server running several times before, and I assure that I am in the application directory. 我之前已经使服务器运行了几次,并且确保我在应用程序目录中。 Could somebody please provide another explanation as to why this would happen? 有人可以再解释一下为什么会发生这种情况吗? If you need more information, feel free to ask. 如果您需要更多信息,请随时询问。

Checked the value of PATH (echo %PATH%) if Ruby was not in there then add it manually: 如果Ruby不存在,请检查PATH的值(回显%PATH%),然后手动添加:

set PATH=C:\\Ruby200-x64\\bin;%PATH% 设置PATH = C:\\ Ruby200-x64 \\ bin;%PATH%

I've installed RubyInstaller for Windows (the "Ruby 2.0.0-p247 (x64)" version) then config the path for your version. 我已经安装了适用于Windows的RubyInstaller(“ Ruby 2.0.0-p247(x64)”版本),然后为您的版本配置路径。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM