From 9dba433034bf67d48c5be8db83e055cc32b119c2 Mon Sep 17 00:00:00 2001 From: YoyoLiuuu Date: Fri, 1 Nov 2024 21:25:44 -0400 Subject: [PATCH] fix deployment issues --- Procfile | 3 ++- README.md | 8 ++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/Procfile b/Procfile index cdb03fc..014ef64 100644 --- a/Procfile +++ b/Procfile @@ -1 +1,2 @@ -web: cd backend && gunicorn gunicorn RattmWeb.wsgi \ No newline at end of file +web: cd backend && gunicorn gunicorn RattmWeb.wsgi +web: python backend/manage.py runserver 0.0.0.0:$PORT \ No newline at end of file diff --git a/README.md b/README.md index 6b96e0d..1c4b862 100644 --- a/README.md +++ b/README.md @@ -143,5 +143,9 @@ frontend/ You can view the Firestore project by going to: [Firestore Console](https://console.cloud.google.com/firestore/databases/-default-/data/panel/transactions/1LpRig3D7NipgPG67P3O?project=rattm-tli) -## Backend as submodule -The backend is \ No newline at end of file +## Backend in directory of main repository +The backend is in backend/, hosted on heroku. +To configure the new backend path: +- heroku config:set PYTHONPATH=backend +- Procfile edit +- update requirement.txt \ No newline at end of file