Code Monkey home page Code Monkey logo

go-deploy's Introduction

go-deploy - A Go (golang) cli deployer

Distributable build deployer written in go

Overview

Go-Deploy is a cli program designed to deploy distributable build into host server.

Install it with:

$ go get redjoker011/go-deploy

or copy build from pkg/go-deploy into your project bin directory

Features

  • Customizable deployer configuration file.
  • Ensure All configuration details were supplied in json file.
  • Ensure branch is synced and has no uncommitted changes.
  • Ensure all test pass upon deployment.
  • Has two available deployment environment staging and production
  • By default use environment configuration file in deploy directory
  • By default deploy distributable build in dist directory

Usage

Create json configuration file in project root directory inside deploy following environment(staging/production) name.

// Deployment Configuration File
// staging.json

{
  "host": "ec2-12-345-678-90.ap-southeast-1.compute.amazonaws.com",
  "user": "ubuntu",
  "branch": "development",
  "deployTo": "/var/www/your_project_name"
}

Execute deployer

$ bin/go-deploy staging

Deploy using different configuration file

$ bin/go-deploy staging --config="path_to_your_configuration_file"

Deploy using different distributable build

$ bin/go-deploy staging --dist="path_to_your_distributable_build"

go-deploy's People

Contributors

redjoker011 avatar

Watchers

 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.