mirror of
https://github.com/jiangrui1994/CloudSaver.git
synced 2026-01-09 14:48:47 +08:00
build:修改启动命令
This commit is contained in:
@@ -1,13 +1,13 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# 如果配置目录下没有 .env 文件,则复制示例文件
|
# 如果配置目录下没有 env 文件,则复制示例文件
|
||||||
if [ ! -f /app/config/.env ]; then
|
if [ ! -f /app/config/env ]; then
|
||||||
cp /app/.env.example /app/config/.env
|
cp /app/.env.example /app/config/env
|
||||||
echo "已创建默认配置文件 /app/config/.env,请根据需要修改配置"
|
echo "已创建默认配置文件 /app/config/env,请根据需要修改配置"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# 创建配置文件软链接
|
# 创建配置文件软链接
|
||||||
ln -sf /app/config/.env /app/.env
|
ln -sf /app/config/env /app/.env
|
||||||
|
|
||||||
# 启动 Nginx 和后端服务
|
# 启动 Nginx 和后端服务
|
||||||
nginx -g 'daemon off;' & npm run start
|
nginx -g 'daemon off;' & npm run start
|
||||||
Reference in New Issue
Block a user