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
cd /data/spug/spug_api
source venv/bin/activate
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
cd /data/spug/spug_api
source venv/bin/activate
python manage.py runscheduler
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
cd /data/spug/spug_api
source venv/bin/activate
python manage.py runmonitor
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
brew install mysql-client
export PATH="/usr/local/opt/mysql-client/bin:$PATH"
export LDFLAGS="-I/usr/local/opt/openssl/include -L/usr/local/opt/openssl/lib"
pip install mysqlclient