1.0.0 • Published 8 years ago

webhook-deploy-for-node v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

Web Deploy for Node

Web Deploy for Node automatically deploys your site by listening for specific HTTP requests and executing CLI commands on your webserver. This application makes it easy to automatically deploy a site hosted on Git provider that supports webhooks.

Configuration

deploy.json

{
    "port": 8080,
    "sites": [
        {
            "url": "/my-relative-url",
            "workingDir": "/path/to/directory",
            "scripts": [
                "echo $PWD",
                "git status",
                "whoami",
                "git pull",
                "git status",
                "git submodule sync",
                "git submodule update",
                "git submodule status",
                "npm i"
            ]
        }
    ]
}

Config Properties

PropertyExplanation
portport of the HTTP server
sitesSite configuration; see below

Site Properties

PropertyExplanation
urlurl path that activates this deployment strategy
workingDirdirectory that contains your application. this is where your scripts should run
scriptslist of commands to run from the CLI