forked from Aurora-Admin-Panel/deploy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8115be6
commit 32b12fb
Showing
1 changed file
with
3 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
``` | ||
|
||
|
@@ -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 | ||
``` | ||
|
||
## 数据库备份与恢复 | ||
|