From 57688426b637a0ad0e3ebc2ca2e7c5b64dbec370 Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Mon, 15 Feb 2021 21:11:24 +0100 Subject: [PATCH] adding improvements to init_project.sh --- examples/README.md | 1 - examples/init_project.sh | 16 ++++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/examples/README.md b/examples/README.md index 0e3b3465..ca98fbbc 100644 --- a/examples/README.md +++ b/examples/README.md @@ -22,7 +22,6 @@ docker-compose run web bash 4. Run on the web docker container the first time: ``` -pip3 install -e /code su - orchestra bash /code/examples/init_project.sh ``` diff --git a/examples/init_project.sh b/examples/init_project.sh index 61df4a40..1f00ceff 100644 --- a/examples/init_project.sh +++ b/examples/init_project.sh @@ -1,7 +1,23 @@ +sudo pip3 install -e /code psql -U orchestra -h postgres < /code/examples/createdb.sql cd ~ django-admin.py startproject panel --template="/code/orchestra/conf/ribaguifi_template" cp /code/examples/env.example panel/.env +cd panel +python3 manage.py setupcronbeat +python3 manage.py syncperiodictasks + +#sudo apt-get install -y rabbitmq-server + +sudo python3 manage.py setuplog + +python3 manage.py collectstatic --noinput +#sudo apt-get install -y nginx-full uwsgi uwsgi-plugin-python3 +#sudo python3 manage.py setupnginx --user orchestra + +#sudo python3 manage.py startservices + + # python3 panel/manage.py migrate