I am creating a batch project using dist and trying to modify the generated start script to start the application on port 9001 .
Here is what is generated:
exec java $* -cp "`dirname $0`/lib/*" play.core.server.NettyServer `dirname $0`
Here is what I tried, which does not seem to work.
exec java $* -Dhttp.port=9001 -cp "`dirname $0`/lib/*" play.core.server.NettyServer `dirname $0`
Any ideas?
I also tried specifying http.port=9001 in application.conf no avail. It was very simple to do it in Play 1.2.X, it seems a step back.
user375566
source share