v0.3.1 更新说明

This commit is contained in:
何全
2019-06-06 16:50:10 +08:00
parent 6d05563181
commit 291086081e
2 changed files with 12 additions and 8 deletions

View File

@@ -101,6 +101,7 @@ mutation deleteUser {
## 部署
* mysql 5.7 / sqlite
```bash
yum install python-devel mysql-devel python36-devel.x86_64 -y
@@ -108,7 +109,7 @@ yum install python-devel mysql-devel python36-devel.x86_64 -y
git clone https://github.com/hequan2017/seal
cd seal
## django 2.2 不支持 低版本的 sqlite,如果想使用sqlite ,请根据这个博客 https://www.jianshu.com/p/cdacf4b74646 进行升级
## django 2.2 不支持 低版本的 sqlite,如果想使用sqlite 存储数据 ,请根据这个博客 https://www.jianshu.com/p/cdacf4b74646 进行升级
python36 -m pip install -r requirements.txt
python36 manage.py makemigrations
@@ -125,10 +126,12 @@ nohup python36 manage.py runserver 0.0.0.0:8001 >> /tmp/http.log 2>&1 &
```
## 异步任务
* redis
* 扩展功能-异步1 推荐 定时任务用celery
```bash
#需要安装redis
#启动celery异步任务
cd seal
celery -B -A seal worker -l info
```

View File

@@ -2,8 +2,8 @@ amqp==2.4.2
aniso8601==3.0.2
argh==0.26.2
backcall==0.1.0
billiard==3.5.0.5
celery==4.2.1
billiard==3.6.0.0
celery==4.3.0
certifi==2018.11.29
chardet==3.0.4
coreapi==2.3.3
@@ -17,6 +17,7 @@ django-cors-headers==2.5.2
django-crispy-forms==1.7.2
django-filter==2.1.0
django-pure-pagination==0.3.0
django-simpleui==2.1.2.603
django-timezone-field==3.0
djangorestframework==3.9.2
dramatiq==1.5.0
@@ -31,7 +32,7 @@ ipython==6.4.0
ipython-genutils==0.2.0
itypes==1.1.0
jedi==0.12.0
Jinja2>=2.10.1
Jinja2==2.10.1
jsonfield==2.0.2
kombu==4.4.0
MarkupSafe==1.1.1
@@ -61,7 +62,7 @@ sqlparse==0.3.0
traitlets==4.3.2
uritemplate==3.0.0
urllib3==1.24.1
vine==1.2.0
vine==1.3.0
watchdog==0.8.3
watchdog-gevent==0.1.0
wcwidth==0.1.7
wcwidth==0.1.7