Skip to content

Commit

Permalink
整理tasks.sh脚本
Browse files Browse the repository at this point in the history
  • Loading branch information
HenryJi529 committed Apr 6, 2024
1 parent 060764f commit 2c00b9f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
File renamed without changes.
File renamed without changes.
6 changes: 4 additions & 2 deletions tasks.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# TODO: 重构tasks.sh

# 加载环境变量
source .env

Expand All @@ -6,7 +8,7 @@ PYTHON=$(pwd)/VENV/bin/python
PIPDEPTREE=$(pwd)/VENV/bin/pipdeptree

runRemoteCommand() {
fab -H $CLOUD_USERNAME@${PUBLIC_IP} -r scripts/fabric -p $1
fab -H $CLOUD_USERNAME@${PUBLIC_IP} -r . -p $1
}

# 简单运行
Expand Down Expand Up @@ -41,7 +43,7 @@ dev() {

# 初始化数据
initialize() {
python scripts/task/initialize_data.py
python initialize.py
}

# 代码测试
Expand Down

0 comments on commit 2c00b9f

Please sign in to comment.