Mac → GitHub → VPS → Nginx → 公网访问:一次完整的静态站点部署记录

第 2 步:VPS 上 Clone 项目

ssh root@162.43.92.249

# 进入 /root
cd /root

# Clone(替换成你的仓库)
git clone https://github.com/YOURNAME/project-dashboard.git
cd project-dashboard

# 确认文件
ls -la
ls -la dist/

项目结构(静态网站):

project-dashboard/
├── dist/                    ← 静态文件(要部署的)
│   ├── index.html
│   ├── app.js
│   ├── style.css
│   ├── planning.css
│   ├── planning.js
│   └── ...
├── README.txt
└── .gitignore

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注