搜索

📄 文章 📚 合集
热门搜索
🐘 PHP ⚡ Laravel 🎨 Vue.js ⚛️ React 📦 Yii 📘 JavaScript 🗄️ MySQL 🐳 Docker
返回合集

[板块5:静态页面生成器] - 14 - github push -feat(render): 实现一键发布功能

代码示例
# 1. 确保 .gitignore 忽略 public/*.html
echo "public/*.html" >> .gitignore

# 2. 查看当前修改状态
git status

# 3. 添加所有需要提交的文件(.gitignore 会自动过滤 public/*.html)
git add .

# 4. 确认没有 .html 文件被添加
git status

# 5. 提交代码
git commit -m "feat(render): 实现一键发布功能

- 添加 publish API 路由
- PageController 增加 publish 方法
- Pages.vue 添加一键发布按钮
- 更新 .gitignore 忽略 public/*.html"

# 6. 推送到远程仓库
git push origin main

🧸 adorable code

专注 PHP、JavaScript、Laravel、Vue.js、React、Yii 全栈开发。记录技术探索过程中的灵感与经验,分享工程实践洞见。

hello@adorablecode.com