简体   繁体   中英

How to run your app in production mode on development server in google app engine-java

This link says whenever we run our app on development server in runs in Development mode. Is there any way to run app in Production mode without deploying to Google app engine.

No. But if the only thing you want is remote clients to use your server application, run your dev_appserver with the --address=IPADDR command-line argument to override its 127.0.0.1 (localhost) default. Replace IPADDR with the IP address of your development computer.

No. Well... you could deploy to JBoss using Cape Dwarf , but that may not be what you had in mind.

What effect are you trying to achieve?

I found my answer as NO. Development server has its own limitations. To check whether your app is running on Google App engine or not, use below code

if (SystemProperty.environment.value() ==
    SystemProperty.Environment.Value.Production) {
    // The app is running on App Engine...
}

This is taken from this link , which is mentioned in my question.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM