This repository has been archived on 2024-04-25. You can view files and clone it, but cannot push or open issues or pull requests.
python-azure-example/justfile

26 lines
470 B
Makefile
Raw Normal View History

2024-03-01 14:11:34 +00:00
# Always use devbox environment to run commands.
set shell := ["devbox", "run"]
# Load dotenv
set dotenv-load
export TF_VAR_name := env("APP_NAME")
# Run server locally
run:
flask --app src/server run
dependencies:
pip install -r src/requirements.txt
dependencies-lock:
pip freeze -l > src/requirements.txt
deploy:
terraform-apply:
terraform -chdir=terraform init
terraform -chdir=terraform apply
terraform-destroy:
terraform -chdir=terraform destroy