grunt-dep
A grunt task plugin to deploy application
Last updated 3 years ago by charleslxh .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install grunt-dep 
SYNC missed versions from official npm registry.

What this?

A grunt task plugin to deploy application

How to install

$ npm install grunt-dep --save-dev

Configuration

see node-dep configurations.

Example

task configuration:

{
    "options": {
        "tasks": [
            {
                "name": "list all files in /var/www",
                "command": "ls -la",
                "priority": 0,
                "stages": ["prod", "test"],
                "workDir": "/var/www"
            }
        ,
            {
                "name": "show the absolute path of application release path",
                "command": "pwd",
                "priority": 0,
                "stages": ["prod", "test"]
            }
        ],
        "proxy": {
            "host": "192.168.51.222",
            "port": 22,
            "username": "proxy_user_name",
            "privateKey": fs.readFileSync(path.resolve(os.homedir(), ".ssh/id_rsa"))
        }
    },
    "test": {
        "options": {
            "servers": [
                {
                    "useProxy: false",
                    "stage": "test",
                    "releasePath": "/var/www/app",
                    "connectOptions": {
                        "name": "s1",
                        "host": "192.168.51.223",
                        "port": 22,
                        "username": "user",
                        "password": "123456"
                    }
                }
            ]
        }
    },
    "prod": {
        "options": {
            "servers": [
                {
                    "name": "s1",
                    "useProxy: true",
                    "stage": "prod",
                    "releasePath": "/var/www/app",
                    "connectOptions": {
                        "host": "192.168.51.223",
                        "port": 22,
                        "username": "user",
                        "password": "123456"
                    }
                }
            ,
                {
                    "name": "s1",
                    "useProxy: true",
                    "stage": "prod",
                    "releasePath": "/var/www/app",
                    "connectOptions": {
                        "host": "192.168.51.223",
                        "port": 22,
                        "username": "user",
                        "password": "123456"
                    }
                }
            ]
        }
    }
}

The result:

result

Current Tags

  • 1.0.3                                ...           latest (3 years ago)

4 Versions

  • 1.0.3                                ...           3 years ago
  • 1.0.2                                ...           3 years ago
  • 1.0.1                                ...           3 years ago
  • 1.0.0                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 4
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |