I have a problem with a project deploy. Until now, I was using a single playframework app, running listening port 80. Now, I have published in the same server 2 apps, using Nginx as a proxy. Nginx listening in port 80 and the apps runs in port 9001 and 9002.
All works well, but the apps running in dev mode and not in prod mode, the page 404 does't work, and in html page I see the code error like this: "Action not found For request 'GET /asd'". I run the app with this command:
myapp -Dhttp.port=9001 -Dconfig.file=conf/application.conf -Dlogger.file=/mydir/conf/application-logger.xml -Dpidfile.path=/mydir/daasy.pid -server
I use playframework 2.4.3 with scala 2.11.7
Update: I have created a bootstrap class:
class onStartClass @Inject() (val app: Application)
{
println(app.mode)
}
The app.mode return "Prod" when run in prod, with port 80 and also when run in port 9001.
But, when the app run in port 9001 doesn't work the page 404, the website return a playframework error page.


curl http://youraddress.com:9001/asd. - Kris