From e42878ca4efa372f63776b7efdee7740698d2316 Mon Sep 17 00:00:00 2001 From: Pavel 'LEdoian' Turinsky Date: Thu, 25 Jun 2020 18:02:13 +0200 Subject: [PATCH] =?UTF-8?q?Inicializa=C4=8Dn=C3=AD=20skript?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Aby si po `make install_web` nebylo potřeba pamatovat, co všechno se má spustit. --- init_local.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 init_local.sh diff --git a/init_local.sh b/init_local.sh new file mode 100755 index 00000000..5c509ba0 --- /dev/null +++ b/init_local.sh @@ -0,0 +1,13 @@ +#!/bin/sh + +set -e # Spadni pokud něco spadne + +# Check venvu +# NOTE: zkontroluje i správnou složku -- existencí Makefilu +make venv_check + +# Vygenerujeme testdata +./manage.py testdata + +# Nahrajeme statický obsah modelů +./manage.py loaddata flat.json sitetree_new.json