Fixes on deployment
This commit is contained in:
parent
553889e625
commit
4fd3fdc664
|
@ -54,7 +54,7 @@ Django-orchestra can be installed on any Linux system, however it is **strongly
|
||||||
|
|
||||||
2. Use celeryd
|
2. Use celeryd
|
||||||
```bash
|
```bash
|
||||||
sudo apt-get install rabbitmq
|
sudo apt-get install rabbitmq-server
|
||||||
sudo python3 manage.py setupcelery --username orchestra
|
sudo python3 manage.py setupcelery --username orchestra
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -84,7 +84,8 @@ class Command(BaseCommand):
|
||||||
raise CommandError("Postgres user '%(db_user)s' already exists and "
|
raise CommandError("Postgres user '%(db_user)s' already exists and "
|
||||||
"--db_pass has not been provided." % context)
|
"--db_pass has not been provided." % context)
|
||||||
else:
|
else:
|
||||||
msg = "Created new Postgres user '%(db_user)s' with password '%(default_db_password)s'"
|
context['db_password'] = context['default_db_password']
|
||||||
|
msg = "Created new Postgres user '%(db_user)s' with password '%(db_password)s'"
|
||||||
self.stdout.write(msg % context)
|
self.stdout.write(msg % context)
|
||||||
self.run_postgres(create_database % context, valid_codes=(0,1))
|
self.run_postgres(create_database % context, valid_codes=(0,1))
|
||||||
|
|
||||||
|
|
|
@ -43,7 +43,7 @@ function main () {
|
||||||
read -p "Do you want to use celery or cronbeat (orchestra.contrib.tasks) for task execution [cronbeat]? " task
|
read -p "Do you want to use celery or cronbeat (orchestra.contrib.tasks) for task execution [cronbeat]? " task
|
||||||
case $task in
|
case $task in
|
||||||
'celery' ) task=celery; break;;
|
'celery' ) task=celery; break;;
|
||||||
'orchestra.contrib.tasks' ) task=orchestra.contrib.tasks; break;;
|
'cronbeat' ) task=orchestra.contrib.tasks; break;;
|
||||||
'' ) task=orchestra.contrib.tasks; break;;
|
'' ) task=orchestra.contrib.tasks; break;;
|
||||||
* ) echo "Please answer celery or cronbeat.";;
|
* ) echo "Please answer celery or cronbeat.";;
|
||||||
esac
|
esac
|
||||||
|
@ -63,12 +63,12 @@ function main () {
|
||||||
|
|
||||||
run python3 -W ignore manage.py migrate
|
run python3 -W ignore manage.py migrate
|
||||||
|
|
||||||
if [[ "$task" == "cronbeat" ]]; then
|
if [[ "$task" == "celery" ]]; then
|
||||||
|
run sudo apt-get install rabbitmq-server
|
||||||
|
run sudo python3 -W ignore manage.py setupcelery --username $USER
|
||||||
|
else
|
||||||
run python3 -W ignore manage.py setupcronbeat
|
run python3 -W ignore manage.py setupcronbeat
|
||||||
run python3 -W ignore manage.py syncperiodictasks
|
run python3 -W ignore manage.py syncperiodictasks
|
||||||
else
|
|
||||||
run sudo apt-get install rabbitmq
|
|
||||||
run sudo python3 -W ignore manage.py setupcelery --username $USER
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
run sudo python3 -W ignore manage.py setuplog --noinput
|
run sudo python3 -W ignore manage.py setuplog --noinput
|
||||||
|
|
Loading…
Reference in New Issue