Coder Social home page Coder Social logo

godzira's Introduction

Godzira

Smash your apps to servers just like Godzira would smash a city!

Build Status

Simple deploy tool:

  • copy your app to remote servers
  • configure tasks to run before or after deployment
  • send notifications to Slack

Installation

go install github.com/piokaczm/godzira

Usage

In your app directory run

godzira init

It creates config directory with empty deploy.yml config file.

After setting it up just run

godzira deploy [environment]

Configuration

You need to properly set your configuration file. Structure should look something like this:

test: true
strategy: scp
name: 'sample_bin'
binary_path: 'bin/sample'

environments:
  staging:
    - host: stg.net
      user: stgapp
      path: /home/stgapp/app/
  production:
    - host: real.net
      user: app1
      path: /home/app/binaries/
    - host: real2.net
      user: app2
      path: /home/app/binaries/

pretasks:
  - name: copy env
    path: /home/sampleapp/.env
    destination: /home/app/.env
    type: copy

  - name: echo
    command: echo test
    type: local

posttasks:
  - name: restart
    command: /etc/sample/daemon restart
    type: remote

  - name: echo
    command: echo test
    type: local

As for now godzira supports 3 type labels for tasks:

  • local for tasks which are supposed to run on a local machine
  • remote tasks which are supposed to run on each host for given environment
  • copy for copying files from local machine to each host (where path is local path to the file and destination is where it should be copied to)

Strategy

Godzira provides two deploy strategies: scp and rsync. You can choose which one to use in your config file. If no strategy specified, the tool will use rsync.

godzira's People

Contributors

piokaczm avatar

Stargazers

Rafał W avatar

Watchers

James Cloos avatar  avatar

godzira's Issues

Godzira does not check if were up to date with code

Godzira should by default deploy only the most fresh code, so it should check first are we up to date with origin/BRANCH
And if we want to deploy some old revision it should be done explicitly with a switch ie --force

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.