Updates Scripts Run Options

This commit is contained in:
2023-10-14 22:52:10 -03:00
parent 4f1560f691
commit 27e18611f8
3 changed files with 6 additions and 4 deletions

View File

@@ -11,7 +11,7 @@
``` ```
python -m pip install --upgrade pip pipenv python -m pip install --upgrade pip pipenv
pipenv install pipenv install
pipenv run python setup.py -e prod -f config.json pipenv run python setup.py -e {{environment-option}} -f config.json
``` ```
- Running Kubernetes Application: - Running Kubernetes Application:
@@ -22,4 +22,6 @@
./deploy.sh {{environmet-flag}} ./deploy.sh {{environmet-flag}}
``` ```
`{{environment-flag}}`: `--test`, `--staging`, `--prod` `{{environment-flag}}` : `--local`, `--staging`, `--prod`
`{{environment-option}` : `local`, `staging`, `prod`

View File

@@ -67,7 +67,7 @@ function application_deploy() {
function main() { function main() {
if [[ $1 == "--test" || $1 == "-t" ]]; then if [[ $1 == "--local" || $1 == "-l" ]]; then
function kubectl { function kubectl {
minikube kubectl -- $@ minikube kubectl -- $@

View File

@@ -14,7 +14,7 @@ def write_template(template: str, output: str):
output.write(envsubst(template.read())) output.write(envsubst(template.read()))
def configure_templates(environment: str): def configure_templates(environment: str):
if not environment in ("prod", "staging", "local", "dev"): if not environment in ("prod", "staging", "local"):
raise ValueError("Invalid Environment Selected") raise ValueError("Invalid Environment Selected")
match environment: match environment: