From 5319c2f6e3b90ff05eddb159b87becfe22be6ce7 Mon Sep 17 00:00:00 2001 From: Arona Jones Date: Thu, 28 Jan 2021 03:33:06 +0000 Subject: [PATCH] Might fix heroku building --- .slugignore | 1 - Procfile | 2 +- app.json | 7 ++++++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.slugignore b/.slugignore index 5de3772f..9adaf84c 100644 --- a/.slugignore +++ b/.slugignore @@ -1,3 +1,2 @@ *.sqlite3 -*.scss *.md diff --git a/Procfile b/Procfile index f796560f..91e43543 100644 --- a/Procfile +++ b/Procfile @@ -1,2 +1,2 @@ -release: node node_modules/gulp/bin/gulp build && python.manage.py collectstatic && python manage.py migrate +release: python manage.py migrate web: gunicorn PyRIGS.wsgi --log-file - diff --git a/app.json b/app.json index b757dd36..f54c663f 100644 --- a/app.json +++ b/app.json @@ -2,7 +2,9 @@ "name": "PyRIGS", "description": "", "scripts": { - "postdeploy": "python manage.py migrate && python manage.py generateSampleData" + "build": "node node_modules/gulp/bin/gulp build", + "postdeploy": "python manage.py migrate && python manage.py generateSampleData", + "heroku-cleanup": "rm node_modules/ pipeline/" }, "stack": "heroku-20", "env": { @@ -47,6 +49,9 @@ "heroku-postgresql" ], "buildpacks": [ + { + "url": "heroku/nodejs" + }, { "url": "heroku/python" }