🚀 Big News:Socket Has Acquired Secure Annex.Learn More →
Socket
Book a DemoSign in
Socket

deploy2

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

deploy2

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

latest
Source
npmnpm
Version
0.0.2
Version published
Weekly downloads
5
400%
Maintainers
1
Weekly downloads
 
Created
Source

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('deploy');
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

Keywords

deploy

FAQs

Package last updated on 01 Dec 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts