Skip to content

Commit 2212898

Browse files
yangmvyangmv
authored andcommitted
去除更新表结构
1 parent 6fa311c commit 2212898

File tree

3 files changed

+431
-5
lines changed

3 files changed

+431
-5
lines changed

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ RUN pip3 install --user --upgrade pip
2222
RUN pip3 install -r /var/www/CMDB/requirements.txt
2323

2424
# 5.准备配置文件
25-
RUN cp /var/www/CMDB/cmdb-example.conf /var/www/CMDB/cmdb.conf
25+
RUN cp /var/www/CMDB/cmdb-example.conf /var/www/CMDB/cmdb.conf
2626

2727
# 6. 数据初始化
28-
RUN python3 /var/www/CMDB/manage.py makemigrations
29-
RUN python3 /var/www/CMDB/manage.py migrate
28+
# RUN python3 /var/www/CMDB/manage.py makemigrations
29+
# RUN python3 /var/www/CMDB/manage.py migrate
3030

3131
# 7. 日志
3232
VOLUME /var/log/

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@ pip3 install -r requirements.txt
2727
#### 三 同步数据库
2828
```
2929
mysql -h 127.0.0.1 -u root -p123456 -e "create database cmdb default character set utf8mb4 collate utf8mb4_unicode_ci;"
30-
python3 manage.py makemigrations
31-
python3 manage.py migrate
30+
mysql -h 127.0.0.1 -u root -p123456 cmdb < docs/cmdb.sql
3231
```
3332

3433
#### 四 Supervisor

0 commit comments

Comments
 (0)