feat: start.sh
This commit is contained in:
parent
28d8649ae6
commit
a6cc23f88c
|
|
@ -2,7 +2,8 @@
|
|||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<!-- <link rel="icon" type="image/svg+xml" href="/vite.svg" /> -->
|
||||
<link rel="icon" type="image/svg+xml" href="/creepy.svg" />
|
||||
<!-- <link rel="icon" type="image/x-icon" href="/favicon.ico" /> -->
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>工作流</title>
|
||||
</head>
|
||||
|
|
|
|||
|
|
@ -0,0 +1 @@
|
|||
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1759221057962" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5752" xmlns:xlink="http://www.w3.org/1999/xlink" width="22" height="22"><path d="M512 512m-512 0a512 512 0 1 0 1024 0 512 512 0 1 0-1024 0Z" fill="#FBD971" p-id="5753"></path><path d="M768 707.047619H219.428571v121.904762h548.571429a60.952381 60.952381 0 1 0 0-121.904762z" fill="#FFFFFF" p-id="5754"></path><path d="M292.571429 341.333333m-146.285715 0a146.285714 146.285714 0 1 0 292.571429 0 146.285714 146.285714 0 1 0-292.571429 0Z" fill="#FFFFFF" p-id="5755"></path><path d="M731.428571 341.333333m-146.285714 0a146.285714 146.285714 0 1 0 292.571429 0 146.285714 146.285714 0 1 0-292.571429 0Z" fill="#FFFFFF" p-id="5756"></path><path d="M707.047619 828.952381v-121.904762M682.666667 707.047619h48.761904v121.904762h-48.761904z" fill="#ECF0F1" p-id="5757"></path><path d="M341.333333 707.047619v121.904762M316.952381 707.047619h48.761905v121.904762h-48.761905z" fill="#ECF0F1" p-id="5758"></path><path d="M585.142857 707.047619v121.904762M560.761905 707.047619h48.761905v121.904762h-48.761905z" fill="#ECF0F1" p-id="5759"></path><path d="M463.238095 707.047619v121.904762M438.857143 707.047619h48.761905v121.904762h-48.761905z" fill="#ECF0F1" p-id="5760"></path><path d="M292.571429 341.333333m-73.142858 0a73.142857 73.142857 0 1 0 146.285715 0 73.142857 73.142857 0 1 0-146.285715 0Z" fill="#AF8066" p-id="5761"></path><path d="M731.428571 341.333333m-73.142857 0a73.142857 73.142857 0 1 0 146.285715 0 73.142857 73.142857 0 1 0-146.285715 0Z" fill="#AF8066" p-id="5762"></path></svg>
|
||||
|
After Width: | Height: | Size: 1.7 KiB |
|
|
@ -0,0 +1,20 @@
|
|||
#!/bin/bash
|
||||
|
||||
# 切换 Node.js 版本
|
||||
nvm use v22.18.0
|
||||
|
||||
# 激活 Python 虚拟环境
|
||||
source backend/venv/bin/activate
|
||||
|
||||
# 启动前端 (后台运行,日志写入 frontend.log)
|
||||
cd frontend
|
||||
nohup npm run dev > ../frontend.log 2>&1 &
|
||||
|
||||
# 启动后端 (后台运行,日志写入 backend.log)
|
||||
cd ../backend
|
||||
nohup python3 app/main.py > ../backend.log 2>&1 &
|
||||
|
||||
# 提示
|
||||
echo "前端和后端已经在后台启动!"
|
||||
echo "前端日志: frontend.log"
|
||||
echo "后端日志: backend.log"
|
||||
Loading…
Reference in New Issue