Is there a simple way to get the current serving application version in AppEngine?
Google App Engine (GAE) is a platform-as-a-service product that provides web app developers and enterprises with access to Google's scalable hosting and tier 1 internet service.
You can find the list of your app versions in the Versions page. To delete the non-default versions, select the check boxes and then click Delete.
os.environ['CURRENT_VERSION_ID']
String version = SystemProperty.version.get(); String applicationVersion = SystemProperty.applicationVersion.get();
This is the syntax:
public static final SystemProperty applicationVersion
The major version number for the currently running version of the application plus a timestamp at which it was deployed. Has the key, "com.google.appengine.application.version".
See here
PS. One puzzle still remains. What does timestamp next to version means and how to read it??
EDIT: Here is the key to the mystery.
Date UploadDate = new Date(Long.parseLong( applicationVersion.substring(applicationVersion.lastIndexOf(".")+1)) / (2 << 27) * 1000);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With