-
Notifications
You must be signed in to change notification settings - Fork 0
/
commencmd.txt
79 lines (47 loc) · 1.47 KB
/
commencmd.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
python manage.py makemigrations
python manage.py migrate
python manage.py collectstatic
@REM 创建app
python manage.py startapp appIndex
@REM 创建超级用户
python manage.py createsuperuser
@REM 生成requirements.txt
pip freeze > requirements.txt
@REM 启动项目服务
start_for_windows
start_for_linux
@REM 关闭项目服务
stop_for_windows
stop_for_linux
@REM 前提系统有安装 GUN gettext,并配置了系统环境变量
@REM 生成中文翻译文件
python manage.py makemessages -l zh_HANS
@REM 生成英文翻译文件
python manage.py makemessages -l en
@REM 编译翻译文件
python manage.py compilemessages
@REM 查看当前git仓库地址
git remote -v
@REM 修改git仓库地址
git remote set-url origin https://gitee.com/chaofanat/django-projecet-template.git
git remote set-url origin https://github.com/chaofanat/django-projecet-template.git
@REM 启动celery,使用线程池
celery -A MainConfig worker -l info -P threads
@REM 查看celery注册的任务
celery -A MainConfig inspect registered
@REM 查看celery正在执行的任务
celery -A MainConfig inspect active
@REM 查看celery已经发送但是还未执行的任务
celery -A MainConfig inspect reserved
@REM redis
Redis/redis-server
Redis/redis-cli
Redis/redis-cli flushall
Redis/redis-cli shutdown
@REM docker
docker-compose build
docker images
docker tag [imageId] [imageName]
docker push [imageName]
docker-compose up -d
docker-compose -f [docker-compose-finish.yml] up -d