aigenai commited on
Commit
25d1ac5
·
verified ·
1 Parent(s): 242b7bb

Update run.sh

Browse files
Files changed (1) hide show
  1. run.sh +13 -4
run.sh CHANGED
@@ -2,6 +2,8 @@
2
  echo "============"
3
  whoami
4
  cat /etc/passwd
 
 
5
  echo "============"
6
 
7
  # 确保以 postgres 用户身份运行
@@ -16,10 +18,17 @@ docker-entrypoint.sh postgres &
16
  # 检查 PostgreSQL 服务是否已启动
17
  echo "等待 PostgreSQL 服务启动..."
18
  until pg_isready -h localhost; do
19
- sleep 2
20
  done
21
  echo "PostgreSQL 服务已启动!"
22
 
23
- # 启动 Flask 应用,确保使用虚拟环境中的 Python
24
- echo "启动 Flask 应用..."
25
- $VIRTUAL_ENV/bin/python app.py
 
 
 
 
 
 
 
 
2
  echo "============"
3
  whoami
4
  cat /etc/passwd
5
+ which python3
6
+ which node
7
  echo "============"
8
 
9
  # 确保以 postgres 用户身份运行
 
18
  # 检查 PostgreSQL 服务是否已启动
19
  echo "等待 PostgreSQL 服务启动..."
20
  until pg_isready -h localhost; do
21
+ sleep 5
22
  done
23
  echo "PostgreSQL 服务已启动!"
24
 
25
+ # export N8N_USER_FOLDER=${DATA_DIR}
26
+ export N8N_ENCRYPTION_KEY="n8n8n8n"
27
+ # Allows usage of all builtin modules
28
+ export NODE_FUNCTION_ALLOW_BUILTIN=*
29
+ # Allow usage of external npm modules.
30
+ export NODE_FUNCTION_ALLOW_EXTERNAL=*
31
+
32
+
33
+ # 启动 n8n
34
+ exec n8n