Skip to content

virus2016/deploy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

deploy2 -- ANYWHERE

Keeping your deployments in check

Deploy allows to you to clone a Git repo temporary, update and commit files from a source folder then push the changes back up.

But why?

Here are the issues:

When deploying your application to services like Azure or Heroku from a DevOps perspective, it is difficult to keep track of releases.

When using onsite version control systems like TFS, building node or non .net applications it is near impossible to easily deploy

Solution

Keep your deployment Git repos (builds) separate from the development repos

Right but, just show me the code!

var deploy = require('deploy2');
var gitUrl = 'https://{username}:{password}@{url}/{path}.git';

deploy('{sourceDir}', gitUrl, '{commitMessage}', [excludefolder, excludefolder])

.then(function(result) {
  console.log(result);
})

.catch(function(err) {
  console.log(err);
});

Feel free to contribute

TODO

Add mocha for tests

About

Making it easy to deploy to a git repo or cloud service like azure, heroku etc

Resources

License

Stars

Watchers

Forks

Packages

No packages published