How do I find out the timestamp when a Python application was deployed to GAE?
Wrap appcfg.py
in a shell script. appcfg.py update
Save the current time before launching , possibly adjusting for your time zone, if necessary, in a file marked as a resource. You can open and read this file from the deployed application.
Alternatively, let the script replace the current time directly in the code, eliminating the need to open the file.
source to share
I don't believe there is a GAE API that gives you access to a deployment timestamp.
The closest functionality is the CURRENT_VERSION_ID
environment variable, but this gives you access to version
that specified in app.yaml
, not timestamps.
source to share