project-deploy
Copy project directories to remote server
Last updated 3 months ago by temikn .
ISC · Original npm · Tarball
$ cnpm install project-deploy 
SYNC missed versions from official npm registry.

Project deploy

Using SCP

project-deploy.config.js

Example:

module.exports = (args) => {
    return {
        development: [
            {
                type: "shell",
                remote: false,
                command: [
                    `npm run --prefix ${args.path.cwd} build-dev`
                ]
            },
            {
                type: "shell",
                command: [
                    `rm -rf ${args.path.remote_dir}/public`,
                    `rm -rf ${args.path.remote_dir}/private`,
                    `rm -f ${args.path.remote_dir}/server.js`
                ]
            },
            {
                type: "copy",
                path: [
                    { src: `public` },
                    { src: `private` },
                    { src: `server.js`, dest: `` }
                ]
            }
        ]
    }
};

Execution

node ./node_modules/project-deploy development

with ENV:

  • HOST
  • USER || USERNAME
  • PATH_PRIVATE_KEY || PATH_PK
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (4)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |