- Place
deploy.sh
in{docpad folder}/bin/
- Create (or edit) a
.env
file in your docpad folder with the following values:
#!/bin/bash
DEPLOY_SOURCE_DIR="out/"
DEPLOY_DEST_DIR="~/public_html/"
DEPLOY_SERVER=deploy-server-name
DEPLOY_ACCOUNT=deploy-login-name
- Create a
.deployignore
file in docpad folder with the following values:
**.svn
.git
.gitignore
- Test with
./bin/deploy.sh -n
deploy with./bin/deploy.sh
Thanks, very useful!
I encountered a small problem (source: not found) when I forgot to make deploy.sh executable and executed it with
sh ./bin/deploy.sh
instead. Otherwise it worked perfectly!