- 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
mirzaa
You can create ~/.ssh/config file and specify port.
http://nerderati.com/2011/03/17/simplify-your-life-with-an-ssh-config-file/