Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to start Play application as Production mode using Play2-war-plugin #317

Open
yespeebala opened this issue May 17, 2017 · 3 comments
Open

Comments

@yespeebala
Copy link

How to start Play application as Production mode using Play2-war-plugin and targeted server is Liberty profile.

@yanns
Copy link
Member

yanns commented May 18, 2017

The play war plugin starts the play application in production mode.

@yespeebala
Copy link
Author

@yanns . In my play application I wrote some services It should starts when we deploy code in server(in my case Liberty profile) So, I extended GlobalSetting and override onStart(Application app) method. And It is working fine when I running "play start" command. But, If I create WAR file using play2war plugin and deployed it server. I have to start application/service by hitting rest URL to start the application. My expectation It should start working after deployment.

@yanns
Copy link
Member

yanns commented May 30, 2017

My guess is that the play servlet is loaded lazily. Maybe you can try to configure your server to load the servlet on application start.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants