支持部署在wintersmith中

有没有一种自动的方式来容易地托pipe在Github页面或Heroku上用wintersmith制作的静态网站?

我已经尝试编写一个gruntfile,shell脚本和一些在这个问题中提到的build议,但是他们都很难设置。

我基本上是在寻找像这样简单的东西 –

wintersmith new myblog npm install wintersmith deploy 

PS:有人可以把一个新的wintersmith标签这个问题?

这里有一些基于我为github页面设置的一般准则。 ( 更多信息在Github页面 )

我有两个文件夹。 一个是wintersmith,另一个是git仓库文件夹。

 ./myblog/ (wintersmith) ./personalblog/ (git repo) 

在configuration你的git ./personalblog/通过以下方式创build./personalblog/

 mkdir personalblog; cd personalblog git init git branch -m master gh-pages (this is important! see: https://help.github.com/articles/user-organization-and-project-pages#project-pages) 

在github上创build一个同名的仓库。 然后设置本地回购的起源。 在这里看到更多的信息。

./myblog我有一个bash脚本(build.sh),内容如下:

 #!/bin/sh # ./myblog/build.sh # other build commands such as javascript or css minifiers rm -r ./build/ wintersmith build 

然后,我检查并validation了冬天匠的构build。 我使用nodejs http-server进行validation。 我会有另一个bash脚本文件进行部署:

 #!/bin/sh # ./myblog/deploy.sh # rsync to efficiently sync ./myblog/build to ./personalblog/ # ignore deleteing .git folder and other stuff rsync -rtvu --delete -f"- .git/" -f"- CNAME" -f"- .gitignore" -f"- README.md" ./build/ ../personalblog/ # change dir cd ../personalblog/ # sync to github git add -A git commit -am "Commit on $(date)" git push origin gh-pages 

希望这些指导方针对你有帮助。