diff options
author | rsiddharth <s@ricketyspace.net> | 2019-11-09 13:57:18 -0500 |
---|---|---|
committer | rsiddharth <s@ricketyspace.net> | 2019-11-09 13:57:18 -0500 |
commit | a4298c1abf0b2f0860366a870f708f3d3a6045ba (patch) | |
tree | cd1645d1987fe9e24b349b446a1e57d7aabf635c /Makefile | |
parent | 7167e1f1b8d010416b7a7721c967a306887320b8 (diff) |
Makefile: Add prd-initdb.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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} |