CTRL + C不会停止sinatra应用程序 [英] CTRL+C won't stop a sinatra app

查看:159
本文介绍了CTRL + C不会停止sinatra应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

通常当我在开发期间从控制台运行rails应用程序时,可以按CTRL + C,然后退出。然后,我可以再次运行应用程序,从而反弹和影响更改。



我正在运行一个sinatra应用程序。我只是运行ruby文件。

  $:ruby myapp.rb 
pre>

但是,当我按CTRL + C,它不会停止应用程序。我不得不提出Ubuntu系统监视器并杀死Ruby进程。非常讨厌。



任何人看过这个/处理这个吗?

解决方案

p>我安装了'薄'的宝石,它工作正常。



显然sinatra + webrick是不可阻挡的。



(另外,运行Ubuntu 11.04。)


Normally when I run a rails app from the console during development I can just press CTRL + C and it exits. Then I can run the app again, thus bouncing it and effecting changes.

I am running a sinatra app. I just run the ruby file.

$: ruby myapp.rb

When I press CTRL+C, however, it won't stop the app. I've had to bring up the Ubuntu System Monitor and kill the Ruby process. Very annoying.

Anyone seen this/dealt with this before?

解决方案

I installed the 'thin' gem and it works fine.

Apparently sinatra + Webrick is unstoppable.

(Also, running Ubuntu 11.04.)

这篇关于CTRL + C不会停止sinatra应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆