Created
January 12, 2013 20:57
-
-
Save ondrek/4520429 to your computer and use it in GitHub Desktop.
Deploy Docpad to Github via checkout to gh-pages
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install dependencies (in case of not having all plugins installed) | |
docpad install | |
# Build the website locally | |
docpad generate | |
# Go to the gh-pages branch | |
git checkout gh-pages | |
# Remove all files under version control | |
git rm -rf . | |
# Checkout out folder | |
git checkout master out | |
# Move files from folder out to root | |
mv out/* . | |
# Removing out folder | |
rm -rf out | |
# Removing node_modules folder | |
rm -rf node_modules | |
# Commit changes to gh-pages branch | |
git add . && git commit -m "Regenerate" && git push origin gh-pages | |
# Goes back to master branch: git checkout master | |
git checkout master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uff, I'm changing so ofter my blog, that I really don't remember what the hell is Docpad :)