lin7zhi commited on
Commit
7774e6c
·
verified ·
1 Parent(s): fb0bbb9

Update run.sh

Browse files
Files changed (1) hide show
  1. run.sh +5 -6
run.sh CHANGED
@@ -1,11 +1,10 @@
1
  #!/bin/bash
2
 
3
- # 1. 赋予脚本执行权限
4
- chmod +x sync.sh
5
-
6
- # 2. 后台启动备份脚本
7
  ./sync.sh &
8
 
9
- # 3. 启动主程序 (参考原本的 npm start)
10
- echo "启动主程序..."
 
 
11
  npm start
 
1
  #!/bin/bash
2
 
3
+ # 1. 后台启动备份脚本
 
 
 
4
  ./sync.sh &
5
 
6
+ # 2. 初始化环境 (来自原本的 Dockerfile CMD)
7
+ node src/config/init-env.js
8
+
9
+ # 3. 启动主程序
10
  npm start