Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
LeiShi1313 authored Dec 8, 2020
1 parent 8115be6 commit 32b12fb
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,7 @@ ssh-keygen -t rsa -b 4096 -C "[email protected]"
git clone https://github.com/Aurora-Admin-Panel/deploy.git
cd deploy
docker-compose up -d
# 更新数据库
docker-compose run --rm backend alembic upgrade heads
# 创建超级用户
# 创建管理员用户
docker-compose run --rm backend python app/initial_data.py
```

Expand All @@ -79,14 +77,14 @@ sudo systemctl enable docker
```shell
git reset --hard HEAD
git pull origin main
docker-compose pull && docker-compose down && docker-compose up -d && docker-compose exec backend alembic upgrade heads
docker-compose pull && docker-compose down --remove-orphans && docker-compose up -d && docker-compose exec backend alembic upgrade heads
```

### 测试版
```shell
git reset --hard HEAD
git pull origin main
docker-compose -f docker-compose-dev.yml pull && docker-compose -f docker-compose-dev.yml down && docker-compose -f docker-compose-dev.yml up -d && docker-compose -f docker-compose-dev.yml exec backend alembic upgrade heads
docker-compose -f docker-compose-dev.yml pull && docker-compose -f docker-compose-dev.yml down --remove-orphans && docker-compose -f docker-compose-dev.yml up -d && docker-compose -f docker-compose-dev.yml exec backend alembic upgrade heads
```

## 数据库备份与恢复
Expand Down

0 comments on commit 32b12fb

Please sign in to comment.