Created
May 16, 2024 14:08
-
-
Save and7ey/30a1f31afb31ea1cea57855128dce3dc to your computer and use it in GitHub Desktop.
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
Show hidden 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 --enable_host_checking=false --log_level=debug $project_path/app.yaml\"'" | |
}, | |
{ | |
"name": "Run ngrok", | |
"shell_cmd": "osascript -e 'tell application \"Terminal\" to do script \"/Users/andrey/Documents/Dev/GAE/ngrok http 8080\"'" | |
}, | |
{ | |
"name": "Deploy app", | |
// always use one version to avoid additional charges | |
"cmd": ["gcloud", "app", "deploy", "--project=$project_base_name", "--quiet", "-v=1"] | |
}, | |
{ | |
"name": "Deploy cron.yaml", | |
"cmd": ["gcloud", "app", "deploy", "--project=$project_base_name", "--quiet", "-v=1", "cron.yaml"] | |
}, | |
{ | |
"name": "Enable billing", | |
// https://cloud.google.com/sdk/gcloud/reference/alpha/billing/projects/link | |
"cmd": ["gcloud", "alpha", "billing", "projects", "link", "$project_base_name", "--billing-account", "12346-789012-345678"] | |
}, | |
{ | |
"name": "Disable billing", | |
// https://cloud.google.com/sdk/gcloud/reference/alpha/billing/projects/unlink | |
"cmd": ["gcloud", "alpha", "billing", "projects", "unlink", "$project_base_name"] | |
}, | |
{ | |
"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