fuliai commited on
Commit
9d0d51f
1 Parent(s): e958ce2

Update run.sh

Browse files
Files changed (1) hide show
  1. run.sh +7 -1
run.sh CHANGED
@@ -16,6 +16,12 @@ until pg_isready -h localhost; do
16
  done
17
  echo "PostgreSQL 服务已启动!"
18
 
 
 
 
 
 
 
19
  # export N8N_USER_FOLDER=${DATA_DIR}
20
  export N8N_ENCRYPTION_KEY="n8n8n8n"
21
  # Allows usage of all builtin modules
@@ -24,4 +30,4 @@ export NODE_FUNCTION_ALLOW_BUILTIN=*
24
  export NODE_FUNCTION_ALLOW_EXTERNAL=*
25
 
26
  # 使用绝对路径调用 n8n
27
- exec /usr/local/lib/node_modules/n8n/bin/n8n
 
16
  done
17
  echo "PostgreSQL 服务已启动!"
18
 
19
+ # 执行数据库导入脚本
20
+ echo "运行数据库导入脚本..."
21
+ /app/import-db.sh
22
+
23
+ sleep 3
24
+
25
  # export N8N_USER_FOLDER=${DATA_DIR}
26
  export N8N_ENCRYPTION_KEY="n8n8n8n"
27
  # Allows usage of all builtin modules
 
30
  export NODE_FUNCTION_ALLOW_EXTERNAL=*
31
 
32
  # 使用绝对路径调用 n8n
33
+ exec n8n