Giter VIP home page Giter VIP logo

my-deploy's Introduction

#my-deploy

npm node downloads Build Status

It is a tool for use during development or production of a node.js based application whitch power by git.

The only work you need to do is to Prepare the my-deploy configuration file for your project.

my-deploy used git to check or update your project file , so your project must under git .

my-deploy support two mode:

  • pullwatch : Repeate fetch and check in a fixed time
  • webhook : watching http request and check if need update the project

operator system support: window , mac ox , linux

version control support: github , bitbucket , gitcafe ... ... ...

Let play!

how to use ---> demo movie

#Installation

using npm (the recommended way):

$ npm install -g my-deploy

And my-deploy will be installed globally to your system path.

#Usage

  • First of all , you need to check your envirment
$ git --version
git version 2.7.4 (Apple Git-66)
  • Create mydeploy config file
$ cd /path/of/the/config/file/you/want/to/locate
$ mydeploy init
  • Setup the config file what you need
$ vi .mydeploy.json
---pullwatch---
*
{
      "mode": "pullwatch",
      "url": "your url of git use http",
      "localdir": "/path/of/your/local/project",
      "interval": 3000,
      "hook": {
           "post-changed": "cmd for changed"
       }
      "branch": "master",
      "rules": [
          {
              "type": "tag",
              "value": "[vV]\\d+",
              "env":[
                  "NODE_ENV=development"
              ]
         },
         {
             "type": "commit",
             "value": "#[\\s\\S]*?deploy\\s*[\\s\\S]*?77",
             "env":[
                  "NODE_ENV=development"
              ]
         }
     ]
 }
---webhook---
*
{
      "mode": "webhook",
      "url": "your project url of git use http",
      "localdir": "/path/of/your/local/project",
      "branch": "master",
      "hook": {
           "post-changed": "cmd for changed"
       }
      "port":"3100"
      "rules": [
          {
              "type": "tag",
              "value": "[vV]\\d+",
              "env":[
                   "NODE_ENV=development"
               ]
         },
         {
             "type": "commit",
             "value": "#[\\s\\S]*?deploy\\s*[\\s\\S]*?77",
             "env":[
                  "NODE_ENV=development"
              ]
         }
     ]
 }
  • Start
$ mydeploy start
or
$ mydeploy start -c 'path/to/config/file'

now , your project file will update automatically #enjoy!

License

MIT

my-deploy's People

Contributors

kelvv avatar

Watchers

James Cloos avatar darren avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.