Code Monkey home page Code Monkey logo

easy-git-deploy's Introduction

#EasyGitDeploy

Tired of complex shell scripts for managing GIT on your web server?
This tool has exactly one button for each direction. That's all!

EasyGitDeploy targets the following setup: Your are developing with git and remote repository (e.g. GitHub or BitBucket). To handle deployments for smaller projects (e.g. Static websites, Wordpress, etc.) you would like to deploy a branch directly to the webserver (by default 'master' is used). As soon as everything works as expected, you just have to use the PULL button to either create a new git-driven directory on the webserver or to update the existing directory. This works as long as no file-changes were made on the webserver (e.g. automatic wordpress updates or uploaded user-content).

If there are any conflicting changes, the PUSH button is here to rescue. It creates a new branch and pushes the changes to the remote repository. Now it’s up to you to merge the new branch back to master. As soon as this was made, PULL will work again and brings the project on the webserver back to the latest version.

Requirements on the web server

  • Linux / Unix (or Cygwin on Windows)
  • PHP 5.4
  • git command line tool

Expected Conflict resolvements

Dev Live Push Button Pull Button What to do?
Unchanged Unchanged New Branch (unchanged) No changes
Unchanged Changes New Branch If on other Branch with open changes, cannot checkout master, nothing happens. Nothing to do, but if you are not sure if dev is unchanged do 1st push and 2nd pull again.
New Commits Unchanged New Branch (unchanged) Live receives latest version of master branch.
New Commits Changes New Branch 1. On master: updates or conflicts. 2. On other Branch with open changes, cannot checkout master, nothing happens. On any problems, push first, maybe resolve conflicts on dev and pull again.

Licence

The MIT License (MIT), Copyright (c) 2014 Johannes Hoppe
see License text

Many thanks to Brandon Summers for the initial code.
Thanks to Pascal Dittrich for feedback and code attributions.

easy-git-deploy's People

Contributors

abcd202 avatar johanneshoppe avatar m4r14 avatar

Watchers

 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.