HimoolERP/documents/常用命令.md

31 lines
703 B
Markdown
Raw Normal View History

2021-11-08 17:27:57 +08:00
# 常用命令
2021-12-16 17:54:31 +08:00
## 接口文档
2021-11-08 17:27:57 +08:00
```
http://127.0.0.1:8000/api/schema/swagger-ui/
http://127.0.0.1:8000/api/schema/redoc/
http://127.0.0.1:8000/api/
2021-11-12 01:03:17 +08:00
http://127.0.0.1:8000/admin/
2021-11-08 17:27:57 +08:00
```
2021-11-08 17:40:10 +08:00
## 构建
```
python manage.py makemigrations
python manage.py migrate
python manage.py shell_plus
```
2021-11-08 17:27:57 +08:00
## 启动
```
python tools/create_configs.py
python tools/rebuild_database.py
2021-11-12 01:03:17 +08:00
python manage.py createsuperuser
2021-11-08 17:27:57 +08:00
python manage.py runscript init_permission
python manage.py runscript create_user
2021-11-12 01:03:17 +08:00
python manage.py runscript create_test_data
2021-11-16 14:01:31 +08:00
python manage.py runserver
2021-12-13 02:14:00 +08:00
gunicorn project.asgi:application -c configs/gunicorn.py -k uvicorn.workers.UvicornWorker
2021-12-25 22:00:14 +08:00
ps -aux | grep gunicorn | awk '{print $2}'| xargs kill -9
2021-11-08 17:27:57 +08:00
```