顺道儿服务端(后台服务接口)
- git clone https://github.com/carpaanddonkey/serverapi.git
- cd serverapi
- 确保本地数据库的配置正确(MySQL,数据库名、用户名、密码都是:byway)
- 执行命令 python manage.py syncdb
- 运行脚本startserver.sh或执行python manage.py runserver 0.0.0.0:8000(推荐执行startserver.sh)
- 退出用ctrl+c
- 启动Celery worker: python manage.py celery worker --loglevel=info
- 启动Celery beat(用于定时任务): python manage.py celery beat
@ByWay