django-orchestra-test/examples/init_project.sh

28 lines
775 B
Bash
Raw Permalink Normal View History

2021-02-15 20:11:24 +00:00
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
2021-02-15 20:11:24 +00:00
cd panel
python3 manage.py setupcronbeat
python3 manage.py syncperiodictasks
2021-02-16 12:55:16 +00:00
sudo apt-get install -y rabbitmq-server
sudo python3 manage.py setupcelery --username orchestra
2021-02-15 20:11:24 +00:00
sudo python3 manage.py setuplog
python3 manage.py collectstatic --noinput
2021-02-16 12:55:16 +00:00
sudo apt-get install -y nginx-full uwsgi uwsgi-plugin-python3
sudo python3 manage.py setupnginx --user orchestra
2021-02-15 20:11:24 +00:00
2021-02-16 22:25:42 +00:00
sudo /etc/init.d/rabbitmq-server start
sudo pip uninstall django-celery
2021-02-17 09:23:51 +00:00
sudo pip install -r /code/requirements.txt
2021-02-16 12:55:16 +00:00
sudo python3 manage.py startservices
2021-02-15 20:11:24 +00:00
# python3 panel/manage.py migrate