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" }