node-git-deploy
v1.0.1
Published
Automatic deployment sites when new commits to the repository. Uses basic HTTP auth and SSH connection.
Downloads
9
Readme
Works only with Bitbucket at the moment.
Sample config array
var conf = [
{
name: "My awesome repo", // exact repository name (Bitbucket)
host: 'somehost.com', // ssh host
user: 'ssh_user', // ssh user
pass: 'passw0rd', // ssh master
branch: 'master', // branch to watch
remote: 'origin', // not used atm
auth_login: 'login', // http auth login
auth_pass: 'test', // http auth password
url: 'http://to/git/repository', // not used atm
exec: [ // shell commands to execute (used to pull, move to public_html)
"cd git && git reset --hard HEAD",
"cd git && git pull origin master",
"cd git && cp www/* ../domain.com/public_html/"
]
},
{
...
}
]
$ git clone -b master [email protected]:me/my-awesome-website.git .
$ ssh-keygen
$ cat ~/.ssh/id_rsa.pubSet Deployment key and POST hook (http://login:[email protected]:3124) for your repository.
