我是 RoR 的新手。我正在使用《Agile Web Development with Rails》一书来开始使用 Windows 7。
在命令窗口中,我运行以下命令。
>rails demo
>cd demo
>ruby script/server
此时,它启动了 Mongrel 服务器:
=> Booting Mongrel
=> Rails 2.3.5 application starting on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
书继续告诉我要跑
ruby script/generate controller Say
但是,在启动 Mongrel 服务器后,我无法使用 Ctrl-C 或键入任何相关内容。我是否应该在 InstantRails 命令窗口的另一个实例中创建新 Controller ?现在,我停止服务器的唯一方法是关闭启动服务器的窗口!
如果您需要任何其他详细信息,请告诉我。蒂亚。
最佳答案
您始终可以打开一个新窗口并从那里运行这些命令。
关于ruby-on-rails - 无法在 InstantRails 中输入 "ruby script/server"之后的内容,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2616226/