summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index ef5a1d5..cfd47cb 100644
--- a/Makefile
+++ b/Makefile
@@ -71,6 +71,14 @@ prd-install:
&& chown -R _nfsw:wheel /var/www/nfsw/ \\"
.PHONY: prd-install
+
+prd-initdb:
+ ssh root@${PRD_HOST} \\". ${VENV_DIR}-prd/bin/activate \
+ && FLASK_APP=nfsw flask init-db \
+ && chown -R _nfsw:wheel ${VENV_DIR}-prd \\"
+.PHONY: prd-initdb
+
+
rcd:
scp ${RC_D} root@${PRD_HOST}:/${RC_D}
ssh root@${PRD_HOST} chmod 555 /${RC_D}