Skip to content

Instantly share code, notes, and snippets.

@ondrek
Created January 12, 2013 20:57
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ondrek/4520429 to your computer and use it in GitHub Desktop.
Save ondrek/4520429 to your computer and use it in GitHub Desktop.
Deploy Docpad to Github via checkout to gh-pages
# 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
@ondrek
Copy link
Author

ondrek commented Oct 14, 2013

Uff, I'm changing so ofter my blog, that I really don't remember what the hell is Docpad :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment