node-git-deploy

1.0.1 • Public • Published

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 git@bitbucket.org:me/my-awesome-website.git . 
$ ssh-keygen
$ cat ~/.ssh/id_rsa.pub

Set Deployment key and POST hook (http://login:pass@domamin.com:3124) for your repository.

Readme

Keywords

Package Sidebar

Install

npm i node-git-deploy

Weekly Downloads

0

Version

1.0.1

License

ISC

Last publish

Collaborators

  • mindesik