init1
Production deploy / build (push) Successful in 1m35s Details

This commit is contained in:
wendazhi 2026-02-11 18:02:56 +08:00
parent 33cb73f5d6
commit 429812182b
2 changed files with 21 additions and 5 deletions

View File

@ -31,14 +31,30 @@ jobs:
run: |
set -e
cd repo
mkdir -p /data/wildgrowth/weizhuozhongzhi-ai
rm -rf /data/wildgrowth/weizhuozhongzhi-ai/*
cp -r backend/* /data/wildgrowth/weizhuozhongzhi-ai/
mkdir -p /data/wildgrowth/backend
rm -rf /data/wildgrowth/backend/*
cp -r backend/* /data/wildgrowth/backend/
- name: npm install and prisma
run: |
set -e
cd /data/wildgrowth/weizhuozhongzhi-ai
cd /data/wildgrowth/backend
npm install
npm run prisma:generate
npm run prisma:migrate:deploy
- name: Build backend
run: |
set -e
cd /data/wildgrowth/backend
npm run build -- --outDir ../dist
- name: Start or reload with pm2
run: |
set -e
cd /data/wildgrowth/backend
if pm2 describe wildgrowth >/dev/null 2>&1; then
pm2 reload wildgrowth
else
pm2 start ../dist/index.js --name "wildgrowth"
fi

View File

@ -4,7 +4,7 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>电子成长 - AI 驱动的知识学习应用</title>
<meta name="description" content="电子成长是一款 AI 驱动的知识学习应用。输入任何你想学的主题AI 自动生成交互式学习卡片,让学习变得轻松有趣。">
<meta name="description" content="电子成长是一款 AI 驱动的知识学习应用 。输入任何你想学的主题AI 自动生成交互式学习卡片,让学习变得轻松有趣。">
<style>
* {
margin: 0;