提交 d598138e 编写于 作者: I InsCode

Auto Commit

上级 3da7f95d
......@@ -2,8 +2,8 @@ run = "npm i && npm run dev"
language = "node"
[deployment]
build = "npm i --registry=https://registry.npmmirror.com"
run = "npm run build-sw && node .output/server/index.mjs"
build = "yarn install"
run = "yarn build-sw && node .output/server/index.mjs"
[env]
PATH = "/root/${PROJECT_DIR}/.config/npm/node_global/bin:/root/${PROJECT_DIR}/node_modules/.bin:${PATH}"
......
#!/bin/bash
# 清空当前目录下除init.sh外的所有文件
find . -type f ! -name 'init.sh' -delete
find . -type d ! -name '.' ! -name '..' -exec rm -rf {} +
# 克隆仓库
git clone git@gitcode.com:git_bot/ai-fe.git
# 检查克隆是否成功
if [ $? -ne 0 ]; then
echo "克隆仓库失败"
exit 1
fi
# 移动文件到上一级目录
mv ai-fe/* ai-fe/.* . 2>/dev/null
# 删除空的ai-fe目录
rmdir ai-fe
echo "操作完成"
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册