diff --git a/run_alliance_corp_update.py b/run_alliance_corp_update.py new file mode 100644 index 00000000..c41709f2 --- /dev/null +++ b/run_alliance_corp_update.py @@ -0,0 +1,6 @@ +from util import bootstrap_permissions +from celerytask.tasks import run_alliance_corp_update + +bootstrap_permissions() +run_alliance_corp_update() +quit() diff --git a/startup.sh b/startup.sh index 69fa9f1c..8b854739 100755 --- a/startup.sh +++ b/startup.sh @@ -1,11 +1,7 @@ #!/usr/bin/env bash python manage.py syncdb -python manage.py shell - from util import bootstrap_permissions - from celerytask.tasks import run_alliance_corp_update - bootstrap_permissions() - run_alliance_corp_update() +python manage.py shell < run_alliance_corp_update.py python manage.py celeryd --verbosity=2 --loglevel=DEBUG python manage.py celerybeat --verbosity=2 --loglevel=DEBUG