Giter VIP home page Giter VIP logo

branch-deploy's Introduction

branch-deploy

Manage the deployment of multiple branches through an API

What is this used for?

When you want to quickly deploy test branches of NodeJS server-side applications onto temporary hosts. Back-end API's, front-end previews - anything with a host server.

How does this work?

Essentially, this project acts as a master controller, managing the different branches of a git repo. When the branch-deploy API is triggered, the controller clones the repo locally, checkouts the specified branch and then starts it up on a unique hostname.

Application ENV variables

When you build your application, it needs to have a few ENV variables working in order to properly assign a unique route prefix. Branch-deploy expects a dotenv configuration type setup: .env is stored in the project root and is automatically binded to the application on runtime. Your rout

Variable Description
PREFIX Assigns a host for the server to listen on
HOST Assigns a host for the server to listen on
PORT Assigns a port for the server to listen on

Branch-Deploy ENV variables

Before you can use branch-deploy you will have to setup a few ENV variables.

Variable Description
REPO_URL The URL of the git repo you want to deploy
GIT_USER Your git username
GIT_PASS Your git password
APP_ENTRY Location of your entry file relative to root of app repo
HOST Assign a host for branch-deploy to listen on(optional)
PORT Assign a port for branch-deploy to listen on(optional)

NOTE: Any additional variables defined in your application can be added to the .additional.env in the branch-deploy. These will be automatically binded to the application environment.

Quick-Start

1. Start off by cloning this repo.

2. Copy .example.env to .env and fill in your branch-deploy ENV variables.

3. Install project dependencies:

yarn or npm install

4. Start up the branch-deploy server:

yarn start or npm run start

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.