Git Product home page Git Product logo

post-receive's Introduction

snoot.club/post-receive

a post receive deploy hook for snoots

usage

put npx @snootclub/post-receive in your serve-side repo's hooks/post-receive

snoot usage

for default snoot behaviour you can do something like this inside your snoot container:

git init --bare /repo
>/repo/hooks/post-receive cat <<.
#!/bin/sh
npx @snootclub/post-receive
.
chmod +x /repo/hooks/post-receive
cd /application
git remote add origin /repo
git add .
git push

now you'll be able to do this on your local machine:

git clone ssh://snoot.club:$MY_PORT/repo snoot

and when you push up any changes in snoot it will install them, build them and make them live.

advanced usage

this isn't really specific to snoots and there are some options avaiable

--deploymentDirectory

the directory to use as the deployment target, where files are served from by the webserver.

default /application

--deploymentBranch

the only brank acceptable to deploy from. if changes are pushed to any branch other than this, they won't be deployed ^_^

default master

--repoDirectory

the source bare repo directory used when deploying. by default this uses the directory the process is running from, which will be the current repo when used in a git hook :)

default process.cwd()

post-receive's People

Contributors

chee avatar

Watchers

James Cloos 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.