【问题标题】:How to enable HTTPS together with debug in play framework 2.2.x如何在 play framework 2.2.x 中启用 HTTPS 和调试
【发布时间】:2014-07-14 21:29:24
【问题描述】:

我正在使用 2.2.3 版本的播放框架。我可以将 play 配置为使用 HTTPS 并指定端口,如 documentation 中所述。如果我使用./nameOfMyApp -Dhttps.port=9443,它工作得很好,但我无法在这种模式下调试。

如果我查看旧的documentation of play 1.2.5,它说可以在 application.conf 中指定端口,例如:

http.port=9000
https.port=9443

但如果我在 2.2.3 中这样做,它似乎被忽略了。在我的应用程序目录中运行 play debug run 后,我得到了

[info] play - 在 /0:0:0:0:0:0:0:0:9000 上监听 HTTP ...

有什么想法吗?

真的没人吗?

【问题讨论】:

    标签: playframework playframework-2.2


    【解决方案1】:

    尝试这样运行:

    activator run -Dhttps.port=9443
    

    【讨论】:

      猜你喜欢
      • 2014-04-04
      • 1970-01-01
      • 1970-01-01
      • 2014-02-02
      • 1970-01-01
      • 2013-11-03
      • 2015-12-08
      • 1970-01-01
      相关资源
      最近更新 更多