修复容器启动逻辑

This commit is contained in:
whyour 2023-04-11 14:15:34 +08:00
parent ebb9676a51
commit 4498449eea
5 changed files with 14 additions and 17 deletions

View File

@ -13,10 +13,8 @@ init_nginx
pm2 l &>/dev/null
patch_version &>/dev/null
echo
echo -e "======================2. 安装依赖========================\n"
patch_version
update_depend
echo

View File

@ -3,13 +3,8 @@
"author": "",
"license": "ISC",
"dependencies": {
"crypto-js": "^4.0.0",
"download": "^8.0.0",
"got": "^11.5.1",
"http-server": "^0.12.3",
"nodemailer": "^6.8.0",
"qrcode-terminal": "^0.12.0",
"request": "^2.88.2",
"tough-cookie": "^4.0.0",
"tunnel": "0.0.6",
"ws": "^7.4.3"

View File

@ -90,6 +90,8 @@ main() {
echo -e "=====> 开始检测"
npm i -g pnpm
patch_version
pnpm add -g pm2 tsx
update_depend
start_public
copy_dep
check_ql

View File

@ -439,10 +439,13 @@ patch_version() {
pip3 config set global.index-url $PipMirror
fi
if [[ $NpmMirror ]]; then
pnpm config set registry $NpmMirror
cd && pnpm config set registry $NpmMirror
pnpm install -g
fi
pnpm install -g &>/dev/null
git config --global pull.rebase false
cp -f $dir_root/.env.example $dir_root/.env
if [[ -f "$dir_root/db/cookie.db" ]]; then
echo -e "检测到旧的db文件拷贝为新db...\n"
@ -451,12 +454,6 @@ patch_version() {
echo
fi
pnpm add -g pm2 tsx
git config --global pull.rebase false
cp -f $dir_root/.env.example $dir_root/.env
if [[ -d "$dir_root/db" ]]; then
echo -e "检测到旧的db目录拷贝到data目录...\n"
cp -rf $dir_root/config $dir_root/data

View File

@ -78,9 +78,14 @@ const Initialization = () => {
{
title: '欢迎使用',
content: (
<div className={styles.top} style={{ marginTop: 100 }}>
<div className={styles.top} style={{ marginTop: 30 }}>
<div className={styles.header}>
<span className={styles.title}>使</span>
<span className={styles.desc}>
python3javaScriptshelltypescript A
timed task management panel that supports typescript, javaScript,
python3, and shell.
</span>
</div>
<div className={styles.action}>
<Button