rscnt
bb7f0cf73a
install_debian_packages: Simply excutes apt-get update and installs the packages listed in ./requirements.debian.txt Signed-off-by: rscnt <rascnt@gmail.com>
23 lines
756 B
Makefile
23 lines
756 B
Makefile
PY?=python3
|
|
|
|
BASEDIR=$(CURDIR)
|
|
|
|
SSH_HOST=dynamicweb-staging.ungleich.ch
|
|
SSH_PORT=22
|
|
SSH_USER=app
|
|
SSH_TARGET_DIR=/home/$(SSH_USER)/dynamicweb
|
|
|
|
help:
|
|
@echo 'Makefile for a dynamicweb website'
|
|
@echo ' '
|
|
@echo 'Usage: '
|
|
@echo ' make rsync_upload '
|
|
|
|
collectstatic:
|
|
$(PY?) $(BASEDIR)/manage.py collectstatic
|
|
|
|
rsync_upload:
|
|
rsync -avz -e "ssh -p $(SSH_PORT)" --exclude .git --exclude .ropeproject --exclude __pycache__ --exclude *.pyc --exclude *~ --exclude *.psd $(BASEDIR) $(SSH_USER)@$(SSH_HOST):$(SSH_TARGET_DIR)
|
|
|
|
install_debian_packages:
|
|
apt-get update && cat $(BASEDIR)/requirements.debian.txt | xargs apt-get install -y --no-install-recommends
|