How to run 2 different play! framework instances on the same local machine in 2 different ports?

akka
java

(Saranyuavh) #1

I want to run a user management service as a play instance and a whole another application as another play instance. I want both of these play instances to run on the same machine and on 2 different ports.


(Lars Arnbak) #2

You can specify a running port, when starting your instance. Like this:

./target/universal/stage/bin/your-app -J-Xmx2048m -J-Xms1024m -Dhttp.port=9100

You can also specify a conf file like this:

-Dconfig.resource=prod.conf

or a lets say a production logger:

-Dlogger.resource=prod-logger.xml