开发者

Can't type after "ruby script/server" in InstantRails

I'm a newb to RoR. I'm using the book "Agile Web Development with Rails" to get started on Windows 7.

In the command window, I run the following.

>rails demo
>cd demo
>ruby script/server

At this point, it boots the Mongrel server:

=> 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

The book goes on to tell me to run

ruby script/generate controller Say

but, I cannot Ctrl-C -- or type anything for that matter -- after booting the Mongrel server. Am I supposed to create the new controller in another instance of the InstantRails comman开发者_运维知识库d window? Right now, the only way I can stop the server is closing the window in which I started the server!

Please let me know if you need any other details. tia.


You can always open a new window and run those commands from there.


You either need to put the job in the background or fire up another shell. Control-C should still work, however.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜