Development Questions

Standard installation batch execution task stuck can not see the execution output

The batch execution function needs to start an extra service, which can be started by the following command. The following operation command is based on the environment of the standard installation document

  1. cd /data/spug/spug_api
  2. source venv/bin/activate
  3. python manage.py runworker

Standard installation task plan module added task will not be executed

The task plan function needs to start an extra service, which can be started by the following command. The following operation command is based on the environment of the standard installation document

  1. cd /data/spug/spug_api
  2. source venv/bin/activate
  3. python manage.py runscheduler
  4. python manage.py runworker

Standard installation monitoring center module added monitoring tasks will not be executed

The monitoring center function needs to start an extra service, which can be started by the following command. The following operation command is based on the environment of the standard installation document

  1. cd /data/spug/spug_api
  2. source venv/bin/activate
  3. python manage.py runmonitor
  4. python manage.py runworker

macOS How to use Mysql instead of the default Sqlite database?

Requires the installation of the mysqlclient database driver library, which can be installed by the following steps

  1. brew install mysql-client
  2. export PATH="/usr/local/opt/mysql-client/bin:$PATH"
  3. export LDFLAGS="-I/usr/local/opt/openssl/include -L/usr/local/opt/openssl/lib"
  4. pip install mysqlclient