app.conf中的playframework prod,qa,dev变量在调试模式下不起作用 [英] playframework prod, qa, dev variables in app.conf not working in debug mode

查看:183
本文介绍了app.conf中的playframework prod,qa,dev变量在调试模式下不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们将"play.bat run"用于生产,将"play.bat run-%dev"用于开发(而另一个用于QA),但是当我们更改启动配置时,在参数中将-%dev更改为不起作用,而是加载生产变量.一个人如何启动调试器,使其以我们的开发设置运行?

We use "play.bat run" for production and "play.bat run --%dev" for development(and another for QA) but when we change the launch configuration so --%dev is in the arguments, it doesn't work and loads the production variables instead. How does one launch the debugger so it is running with our development settings?

谢谢, 院长

推荐答案

玩eclipsify

play eclipsify

无需修改命令以传递-%dev参数.

command need not be modified to pass --%dev parameter.

从命令行开始播放-

播放运行-%dev

play run --%dev

您应该在命令窗口的下一行-

You should the below line in the command window -

Listening for transport dt_socket at address: 8000

验证端口为8000,如果不同,则需要将Eclipse调试启动器修改为该端口.默认情况下,生成的文件具有8000端口

Verify the port is 8000, if it is different, then you need to modify the eclipse debug launcher to this port. By default the files generated have 8000 port

这篇关于app.conf中的playframework prod,qa,dev变量在调试模式下不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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