gxgk wechat server
1.0.0
This code is no longer being maintained.
The project is no longer maintained. The purpose of open source is more to give novices a reference demo.
The backend of the campus WeChat public account provides a series of information inquiry and convenient services for school students.
Preview :
Main functions :
other :
Additional instructions:
Install MySQL and Redis
略
Install dependencies
pip install -r requirements.txt
Create configuration file
cp instance/config.example instance/config.py
vi instance/config.py
Initialize database
# into Python shell
>>> from main.models import db
>>> db.create_all()
run
python run.py
Run queue tasks
celery -A main.celery worker --beat -l info
test
这个开发者很懒,暂时没写下什么测试……
deploy
# using gunicorn
pip install gunicorn
# run
gunicorn -w 3 run:app -p wechat.pid -b 127.0.0.1:8000 -D --log-level warning --error-logfile gunicorn-error.log
# reload
kill -HUP `cat wechat.pid`
MIT