如何在 ruby​​mine 中停止/终止服务器(开发) [英] How to stop/kill server (development) in rubymine

查看:33
本文介绍了如何在 ruby​​mine 中停止/终止服务器(开发)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这里是新手.我在 ruby​​mine 中创建了一个 rails 项目,以运行我按下shift"+ F10 键的公共文件夹中的默认 index.html.这与终端的 rails server 相同.这就是我得到的:

Newbie here. I created a rails project in rubymine to run the default index.html from public folder I pressed 'shift' + F10 key. This is same as rails server from the terminal. This is what I get:

/home/bubble/.rvm/rubies/ruby-1.9.2-p180/bin/ruby -e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)/home/bubble/Desktop/Hard Boiled Bubble/bubbles/script/rails server -b 0.0.0.0 -p 3334 -e development=> 启动 Mongrel=> Rails 3.1.0.rc1 应用程序开始在 http://0.0.0.0:3334 上开发=> 用 -d 调用来分离=> Ctrl-C 关闭服务器

/home/bubble/.rvm/rubies/ruby-1.9.2-p180/bin/ruby -e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) /home/bubble/Desktop/Hard Boiled Bubble/bubbles/script/rails server -b 0.0.0.0 -p 3334 -e development => Booting Mongrel => Rails 3.1.0.rc1 application starting in development on http://0.0.0.0:3334 => Call with -d to detach => Ctrl-C to shutdown server

干净整洁.但是现在我无法关闭服务器.它根本行不通.既不是来自终端也不是 ruby​​mine.我每次都必须从系统监视器中终止该进程.

Nice clean. But now I cannot shutdown the server. It simply doesn't work. Neither from terminal nor rubymine. I have to kill the process from the system monitor everytime.

任何线索,我的设置可能有什么问题?是因为 rails 3.1.0.rc --pre ??

Any clues, of what can be wrong in my set up? Is is because of rails 3.1.0.rc --pre ??

推荐答案

在 Rubymine 3.1(它似乎不是 Rubymine 问题)和 rails 3.0.9(它似乎也不是 Rails 问题)中遇到类似问题).Om 我的电脑我从控制台运行 erver 时遇到了同样的问题.尝试从应用程序目录在控制台中运行 rails s,然后按 Ctrl+C 停止进程(服务器).

Got similar issue with Rubymine 3.1 (it do not seems to be a Rubymine issue) and rails 3.0.9 (it also do not seems to be a Rails issue). Om my computer I have the same problem by running the erver from the console. Try running rails s in the console from your application directory, and stop the process (server) by pressing Ctrl+C.

在我的 Ubuntu 11.4 + Rails 1.9.2(通过 RVM)上它不能正常工作,证明问题不是来自 Rubymine.

On my Ubuntu 11.4 + Rails 1.9.2 (via RVM) it doesn't work as well, proving the issue do not come from Rubymine.

环顾网络,ruby 服务器陈旧"是很常见的,但这是我第一次看到它,现在没有得到解决方案(抱歉).

Looking around the web, it is quite common that ruby server "stale", but it is the very first time I see it, and didn't get the solution for now (sorry for that).

最后但并非最不重要的!使用我尝试过的所有 ruby​​ 服务器处理陈旧:Webrick、Mongrel &瘦.让我想想,这是一个ruby问题,似乎停止信号没有到达服务器......

Last but not least ! Process stale with all ruby server I tried : Webrick, Mongrel & Thin. Making me think, it is a ruby issue, it seems that the stop signal does not arrive to the server...

如果有人有更多线索来解决这个问题,我也会很高兴.

I'll also be glad, if somebody has some more clues to fix this.

这篇关于如何在 ruby​​mine 中停止/终止服务器(开发)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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