Created
May 25, 2020 10:24
-
-
Save and7ey/09c0ec2308a15d4fd7b964911b45215a to your computer and use it in GitHub Desktop.
Google Cloud (gcloud) App Engine Build System for Sublime Text
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
// http://www.sublimetext.com/docs/3/build_systems.html | |
// https://cloud.google.com/sdk/gcloud/reference/app | |
{ | |
"file_patterns": ["*.py", "*.yaml"], | |
"keyfiles": ["app.yaml"], | |
"quiet": true, | |
"variants": | |
[ | |
{ | |
"name": "Run local server", | |
// "cmd": ["dev_appserver.py", "app.yaml"] // no control | |
"shell_cmd": "osascript -e 'tell application \"Terminal\" to do script \"dev_appserver.py $project_path/app.yaml\"'" | |
}, | |
{ | |
"name": "Deploy app", | |
"cmd": ["gcloud", "app", "deploy", "--project=$project_base_name", "--quiet"] | |
}, | |
{ | |
"name": "Browse app", | |
"cmd": ["gcloud", "app", "browse", "--project=$project_base_name"] | |
}, | |
{ | |
"name": "Open console", | |
"cmd": ["gcloud", "app", "open-console", "--project=$project_base_name"] | |
}, | |
{ | |
"name": "Open logs", | |
"cmd": ["gcloud", "app", "open-console", "--logs", "--project=$project_base_name"] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
OSX edition.
Works with Python and YAML files.
Sublime Project is required (see $project_base_name variable used).