summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorrsiddharth <s@ricketyspace.net>2019-11-09 13:57:18 -0500
committerrsiddharth <s@ricketyspace.net>2019-11-09 13:57:18 -0500
commita4298c1abf0b2f0860366a870f708f3d3a6045ba (patch)
treecd1645d1987fe9e24b349b446a1e57d7aabf635c /Makefile
parent7167e1f1b8d010416b7a7721c967a306887320b8 (diff)
Makefile: Add prd-initdb.
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}