Vlad Stryapko
Vlad Stryapko

Reputation: 1057

Configuring Play Framework 2.0 conf file in Intellij IDEA 14.1.4

I'm using Intellij IDEA 14.1.4 to develop a Play 2.x application and I was wondering if it's possible to somehow configure the conf file used by Play. I'd like to do something similar to what's described here: https://www.playframework.com/documentation/2.4.x/ProductionConfiguration.

$ /path/to/bin/<project-name> -Dconfig.file=/opt/conf/prod.conf

Is is possible to somehow set up a configuration in IDEA? I've looked at the configuration settings in IDEA, but I haven't found anything to specify the conf file. I've also tried the IDEA forum but unfortunately nobody has answered so far.

Here's the configuration window in IDEA:

IDEA config screen

Upvotes: 0

Views: 250

Answers (1)

Peanut
Peanut

Reputation: 3973

You can edit the "run configuration" and specify additional parameters. Recent versions of IDEA use sbt to run Play Applications, which allows you to add additional parameters.

Simply add -Dconfig.resource=idea.conf and create an idea.conf-file containing the development configuration.

Upvotes: 1

Related Questions