Keine Beschreibung

bob.yuxinyang 76b319365f first commit vor 1 Monat
public 76b319365f first commit vor 1 Monat
src 76b319365f first commit vor 1 Monat
.gitignore 76b319365f first commit vor 1 Monat
.oxlintrc.json 76b319365f first commit vor 1 Monat
README.md 76b319365f first commit vor 1 Monat
deploy.sh 76b319365f first commit vor 1 Monat
design-qa-comparison.png 76b319365f first commit vor 1 Monat
design-qa-implementation.png 76b319365f first commit vor 1 Monat
design-qa.md 76b319365f first commit vor 1 Monat
index.html 76b319365f first commit vor 1 Monat
nginx.conf 76b319365f first commit vor 1 Monat
package-lock.json 76b319365f first commit vor 1 Monat
package.json 76b319365f first commit vor 1 Monat
provision-server.sh 76b319365f first commit vor 1 Monat
vite.config.js 76b319365f first commit vor 1 Monat

README.md

纯粹星辰官网

React + Vite 静态网站。

本地开发

npm install
npm run dev

一键部署

服务器和域名信息保存在 deploy.config,私钥文件仅保存在本机并已被 Git 忽略。

./deploy.sh

脚本会自动构建、上传并切换到新版本,服务器保留最近 5 个版本。站点使用独立 Docker 容器接入现有网关,不占用宿主机的新端口,也不会覆盖其他网站。

首次迁移到一台全新服务器时才需要运行:

./provision-server.sh