🚀 Launch Week Day 2:Introducing Custom Tabs for Org Alerts.Learn More →
Socket
Book a DemoInstallSign in
Socket

taco-git-push-deploy

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

taco-git-push-deploy

git push deploy with taco

latest
Source
npmnpm
Version
1.1.0
Version published
Maintainers
1
Created
Source

taco-git-push-deploy

git push deploy with taco

npm install -g taco-git-push-deploy

build status

Usage

First go into your application that you want to deploy using git push

cd my-app

Make sure this app has a package.json that contains a name field. Then run

# substitute maf@mafintosh.com with an ssh user/host you want to setup deployment to
taco-git-push-deploy maf@mafintosh.com

This will open your editor with a file that looks like this one

#!/bin/bash
# setup your taco pipeline
# make sure git, taco-build, taco-mon etc is installed on your server

git archive --format=tar master | taco-build "npm install" | taco-mon deploy ~

This is the script that will be running on the server when you git push to it. If you wan't to use a different build command than npm install etc you should edit it here.

When you save and close this script file in your editor taco-git-push-deploy will login to your server, create a bare git repo, add your script as a post-receive hook and and the repo as a remote called deploy in your local repo

Now all you need to do to deploy your app is

git push deploy master

License

MIT

FAQs

Package last updated on 29 Oct 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