0

我仍在寻找使用 html5 样板 + 构建脚本、gitHub 和可能 git-ftp 的良好开发 -> 部署工作流程(主要用于小型网站)。

问题是我想不出一种很酷的方法来将 html5 样板的发布文件夹部署到我的网络服务器(我通常没有 ssh 访问权限)

你怎么做呢?

如果网站使用像 redaxo 这样的 CMS 怎么办?

4

2 回答 2

0

只需在“发布”文件夹中使用git-ftp:

  1. 从“发布”文件夹中创建一个 git 存储库

    cd publish
    git init
    git add .
    git commit -m "This is now a git repo"
    
  2. 在 publish/.git/config 中配置 git-ftp,然后使用:

    git ftp init
    
于 2012-09-15T16:24:51.730 回答
0

使用 git-ftp 的 syncroot 选项指定要同步的目录,就好像它是 git 项目根路径一样。在 [git-ftp] 下的 .git/config 中添加

syncroot = publish/
于 2012-10-17T21:10:55.517 回答