spug/spug_api/tools/start-scheduler.sh

12 lines
319 B
Bash
Raw Normal View History

2020-01-07 16:25:18 +00:00
#!/bin/bash
2020-01-15 12:48:22 +00:00
# Copyright: (c) OpenSpug Organization. https://github.com/openspug/spug
# Copyright: (c) <spug.dev@gmail.com>
2020-06-14 10:30:52 +00:00
# Released under the AGPL-3.0 License.
2020-01-07 16:25:18 +00:00
# start schedule service
2020-01-15 12:48:22 +00:00
2020-01-07 16:25:18 +00:00
cd $(dirname $(dirname $0))
2020-05-07 10:13:55 +00:00
if [ -f ./venv/bin/activate ]; then
source ./venv/bin/activate
fi
2020-01-15 12:48:22 +00:00
exec python manage.py runscheduler