Giter Site home page Giter Site logo

puppet-gitdeploy's Introduction

Puppet Git Deploy

A puppet module to enable Heroku-style, git push-based deployment of web apps and workers.

PRE-ALPHA

This module is PRE-ALPHA. Use at your own risk.

Puppet Usage

# Configure up gitdeploy
class { 'gitdeploy':
    bareReposDir => "/var/git",
    webroot      => "/var/www",
    owner        => "root",
    group        => "root",
}

# Create a bare git repo at ${bareReposDir}/rad-app.git
# On each push deploy the app to ${webroot}/rad-app
gitdeploy::repo { 'rad-app':}

App Preparation

Setup Makefile and Procfile

Gitdeploy replies on Makefile's and Procfile's to build and run apps respectively. Just commit a Makefile or Procfile in your app repo.

Example Makefile

install:
	mvn clean install -P uberjar

Example Procfile

web: java $JAVA_OPTS -jar target/api-0.1.05.jar server src/main/resources/prod.yml

Setup Git remote

$ git remote add <remote-name> ssh://<instance-url>/var/git/rad-app.git

Deploy

Run this command...

$ git push <remote-name> master:master

This will push your changes to the bar git repo created by the gitdeploy. These changes will be deployed to the webroot. If your app has a Makefile, make install. If your app has a Procfile, then foreman will export an upstart config and run it.

puppet-gitdeploy's People

Contributors

wmluke avatar

Watchers

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