修改容器启动流程

This commit is contained in:
whyour
2023-05-04 22:07:39 +08:00
parent 8b8bd279c6
commit 0c28b63ab7
5 changed files with 30 additions and 37 deletions
+13
View File
@@ -6,11 +6,13 @@ reset_env() {
echo -e "---> 配置文件检测完成\n"
echo -e "---> 2. 开始安装青龙依赖\n"
rm -rf $dir_root/node_modules
npm_install_2 $dir_root
echo -e "---> 青龙依赖安装完成\n"
echo -e "---> 3. 开始安装脚本依赖\n"
cp -f $dir_sample/package.json $dir_scripts/package.json
rm -rf $dir_scripts/node_modules
npm_install_2 $dir_scripts
echo -e "---> 脚本依赖安装完成\n"
}
@@ -84,6 +86,17 @@ main() {
echo -e "=====> 开始检测"
npm i -g pnpm
patch_version
apk add procps
if [[ $PipMirror ]]; then
pip3 config set global.index-url $PipMirror
fi
if [[ $NpmMirror ]]; then
cd && pnpm config set registry $NpmMirror
pnpm install -g --force
fi
pnpm add -g pm2 tsx
reset_env
start_public