Skip to content

Commit

Permalink
feat: uni as branchs api e deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
henrique-tostes-a3 committed Sep 27, 2024
1 parent 63d6e69 commit cbe9fcc
Show file tree
Hide file tree
Showing 5 changed files with 606 additions and 276 deletions.
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,11 @@ create-infra: create-bucket
.PHONY: deploy
deploy: build-image push-image create-infra

## Deleta toda infraestrutura provisionada anteriormente
.PHONY: destroy
destroy:
terraform -chdir="deployment/infrastructure/terraform" destroy -auto-approve

#################################################################################
# Self Documenting Commands #
#################################################################################
Expand Down
2 changes: 1 addition & 1 deletion deployment/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ COPY config/ config/
EXPOSE 8000

# Comando para rodar a aplicação FastAPI com Uvicorn
CMD ["poetry", "run", "uvicorn", "api.main:app", "--host", "0.0.0.0", "--port", "8000"]
CMD ["poetry", "run", "uvicorn", "api.app.main:app", "--host", "0.0.0.0", "--port", "8000"]
4 changes: 2 additions & 2 deletions dvc.lock
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ stages:
size: 4551
- path: src/pipelines/features.py
hash: md5
md5: 3360c78251a70f570a4d724ed48356c1
size: 3912
md5: cbc704ae4468467dcaa89decb3c05a17
size: 4136
outs:
- path: artifacts/data/processed/test_data.csv
hash: md5
Expand Down
Loading

0 comments on commit cbe9fcc

Please sign in to comment.