Skip to content

A Lets plugin for deploying through git push (for example to heroku)

Notifications You must be signed in to change notification settings

letsjs/lets-git-push

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lets-git-push

Deploy a project using Lets through git push

Basically all this plugin does is executing git push <remote> <branch>[:<remoteBranch>] in a controlled and structured fashion.

Installation

This plugin requires Lets. If you haven't used Lets before you better head over there and read up on how to install it and get started. To use lets-git-push:

$ npm install lets-git-push

Example

Letsfile.js

var gitPull = require('lets-git-pull');

module.exports = function (lets) {
  var production = lets.Stage(),
      staging = lets.Stage();

  production.plugin(gitPull.deploy({
    remote: 'heroku_production',
    branch: 'master'
  }));

  staging.plugin(gitPull.deploy({
    remote: 'heroku_staging',
    branch: 'develop',
    remoteBranch: 'master'
  }));

  lets
    .addStage('production', production)
    .addStage('staging', staging);
};

Options

  • remote (string) name of the remote to push to
  • branch (string) same as localBranch
  • localBranch (string) name of the local branch to be pushed
  • [remoteBranch] (string) name of the remote branch to push to. Falls back to localBranch if not set

About

A Lets plugin for deploying through git push (for example to heroku)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published