From 23f72e10f74c54d3f215c4f0ff12f635c81e06a6 Mon Sep 17 00:00:00 2001 From: atashnezhad Date: Mon, 7 Aug 2023 22:43:00 -0500 Subject: [PATCH] procfile added --- Makefile | 10 +++++++++- Procfile | 1 + 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 Procfile diff --git a/Makefile b/Makefile index 3299d95..368845c 100644 --- a/Makefile +++ b/Makefile @@ -153,4 +153,12 @@ run-docker-remove: # docker remove all images .PHONY: run-docker-remove-all run-docker-remove-all: - ./script_dockers.sh remove-all-imgs \ No newline at end of file + ./script_dockers.sh remove-all-imgs + +# deploy to heroku +.PHONY: deploy-heroku +deploy-heroku: + heroku container:login + heroku create rtbg-app + heroku container:push web --app rtbg-app + heroku open --app rtbg-app \ No newline at end of file diff --git a/Procfile b/Procfile new file mode 100644 index 0000000..4b32c3e --- /dev/null +++ b/Procfile @@ -0,0 +1 @@ +web: uvicorn app.main:app --host 0.0.0.0 --port $PORT