为什么每次运行/调试应用程序时,RubyMine 2.0.2 都会在不同的端口上启动 Webrick? [英] Why RubyMine 2.0.2 starts Webrick on different port each time I run/debug my app?

查看:36
本文介绍了为什么每次运行/调试应用程序时,RubyMine 2.0.2 都会在不同的端口上启动 Webrick?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每次我在 RubyMine 下启动 Rails 2.3.8 web 应用程序时,它都使用不同的端口.这让我很生气,因为每次我想测试某些东西时,我都必须更改浏览器中的 URL.我找不到任何配置选项来改变它.有人吗?

Each time I start my Rails 2.3.8 webapp under RubyMine, it's using a different port. This drives me mad, since I've to change the URL in the browser each time I want to test something. I'm unable to find any configuration option to change that. Anyone?

推荐答案

这可能没有帮助,因为我使用的是 RubyMine 3,但是,我的工具栏中有一个下拉菜单用于选择不同的开发环境(例如生产、开发).

This may not help because I'm using RubyMine 3, however, there is a dropdown menu in my toolbar for selecting the different development environments (e.g. production, development).

下拉菜单位于绿色运行"三角形的左侧.如果您单击列表,其中一个选项是编辑配置" - 这会弹出一个窗口,其中包含服务器端口配置设置.

The dropdown menu is to the left of the green "Run" triangle. If you click on the list one of the options is "Edit Configurations" - this pops open a window that has server port configuration settings in it.

希望这在您的 RubyMine 版本中也是一样的!

Hope this is the same in your version of RubyMine!

这篇关于为什么每次运行/调试应用程序时,RubyMine 2.0.2 都会在不同的端口上启动 Webrick?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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