在 Intellij IDEA 14.1.4 中配置 Play Framework 2.0 conf 文件
Configuring Play Framework 2.0 conf file in Intellij IDEA 14.1.4
我正在使用 Intellij IDEA 14.1.4 开发 Play 2.x 应用程序,我想知道是否可以以某种方式配置 Play 使用的 conf 文件。我想做一些类似于此处描述的事情:https://www.playframework.com/documentation/2.4.x/ProductionConfiguration.
$ /path/to/bin/<project-name> -Dconfig.file=/opt/conf/prod.conf
是否有可能以某种方式在 IDEA 中设置配置?我查看了 IDEA 中的配置设置,但我没有找到任何指定 conf 文件的内容。我也尝试过 IDEA 论坛,但不幸的是到目前为止还没有人回答。
这里是IDEA中的配置window:
您可以编辑 "run configuration" 并指定其他参数。 IDEA 的最新版本使用 sbt
到 运行 Play Applications,它允许您添加额外的参数。
只需添加 -Dconfig.resource=idea.conf
并创建一个包含开发配置的 idea.conf 文件。
我正在使用 Intellij IDEA 14.1.4 开发 Play 2.x 应用程序,我想知道是否可以以某种方式配置 Play 使用的 conf 文件。我想做一些类似于此处描述的事情:https://www.playframework.com/documentation/2.4.x/ProductionConfiguration.
$ /path/to/bin/<project-name> -Dconfig.file=/opt/conf/prod.conf
是否有可能以某种方式在 IDEA 中设置配置?我查看了 IDEA 中的配置设置,但我没有找到任何指定 conf 文件的内容。我也尝试过 IDEA 论坛,但不幸的是到目前为止还没有人回答。
这里是IDEA中的配置window:
您可以编辑 "run configuration" 并指定其他参数。 IDEA 的最新版本使用 sbt
到 运行 Play Applications,它允许您添加额外的参数。
只需添加 -Dconfig.resource=idea.conf
并创建一个包含开发配置的 idea.conf 文件。