From 46fc4568322701c667cf6cd78f1fec5d23484ebc Mon Sep 17 00:00:00 2001 From: smartspot2 Date: Thu, 23 Dec 2021 04:08:04 -0800 Subject: [PATCH] Add postdeploy scripts to setup database --- app.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app.json b/app.json index 14cb48b5..e0fc9429 100644 --- a/app.json +++ b/app.json @@ -9,7 +9,10 @@ { "url": "heroku/python" } - ] + ], + "scripts": { + "postdeploy": "python3 csm_web/manage.py migrate && python3 csm_web/manage.py createtestdata --yes" + } } } }