This repository has been archived by the owner on Apr 27, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use GAE lib_config for configuration, all config in settings.py
- Loading branch information
1 parent
822bcae
commit 08c0ab9
Showing
3 changed files
with
36 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# In DRY_RUN mode, deletes are only logged. Set this to False after you've | ||
# double-checked the status page and you're ready to enable the deletes. | ||
main_DRY_RUN = True | ||
|
||
# Be careful, this application will delete all instances in this project | ||
# unless they're tagged with one of the SAFE_TAGS below. | ||
main_GCE_PROJECT_ID = 'replace-with-your-compute-engine-project-id' | ||
|
||
# Instance tags which will never be deleted. | ||
main_SAFE_TAGS = ['production', 'safetag'] | ||
|
||
# Instances are deleted after they have been running for TIMEOUT minutes. | ||
main_TIMEOUT = 60 * 8 # in minutes, defaulting to 8 hours |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Using lowercase as global is a bit scary, especially because you end up using it in MainHandler.get