Deploy in Makefile.
authorRadek Czajka <rczajka@rczajka.pl>
Fri, 8 Feb 2019 10:38:57 +0000 (11:38 +0100)
committerRadek Czajka <rczajka@rczajka.pl>
Fri, 8 Feb 2019 10:38:57 +0000 (11:38 +0100)
Makefile

index 5ef3ba7..471127c 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,3 +1,13 @@
+.PHONY: deploy test
+
+
+deploy: src/wolnelektury/localsettings.py
+       git submodule update --init
+       pip install -r requirements/requirements.txt
+       src/manage.py migrate --noinput
+       src/manage.py collectstatic --noinput
+
+
 .ONESHELL:
 test:
        cd src