GithubHelp home page GithubHelp logo

tranlongpc / git-auto-deploy Goto Github PK

View Code? Open in Web Editor NEW

This project forked from scriptburn/git-auto-deploy

0.0 2.0 0.0 612 KB

Deploy your GitHub, GitLab or Bitbucket projects automatically on Git push events or web hooks

PHP 82.38% HTML 17.43% CSS 0.19%

git-auto-deploy's Introduction

git-auto-deploy

Deploy your GitHub, GitLab or Bitbucket projects automatically on Git push events or web hooks

Installation

  • With Composer composer create-project --no-interaction scriptburn/git-auto-deploy my-app

  • Or simply download and unzip from github

  • Suggest you to create a subdomain like deploy.example.com

  • open app\settings.php and update db, git_path, composer_path according to your server Settings

  • Make sure to add webserver user's public ssh keys in GitHub, BitBucket, GitLab

  • Login to your ssh as the same user as your webserver process is running and issue these commands And accept 'Yes' after you have added your public ssh keys to GitHub, BitBucket, GitLab $ ssh [email protected] $ ssh [email protected] $ ssh [email protected]

  • $ pbcopy < ~/.ssh/id_rsa.pub

  • Put http://< your-domain >/webhook as WebHook url in appropriate repository

  • Default login and password is admin and admin

  • Now Create a new project and appropriate details and you are ready to go

  • After you push the changes to your remote repo deployment process in your server will start and if you entered your email in project form you will get detailed deployment log or you can check last deployment log any time by visting project list page

Pre/Post Hook script

You can check sample-post-hook.php for sample code used in a post hook script

Login Page

Login page

Projects list page:

  • Search By project name,status and repository type (GitHub ,BitBucket, GitLab) Projects list page

Projects Form:

  • Options to add custom pre and post deployment script.
  • Option to send detailed Deployment status report to provided email
  • Mark a project active or inactive
  • Run composer update after successfull deployment Projects Form

Deployment log

  • View Detailed log of last failed or sucessfull deployment Deployment log

Update Profile

  • Change your email and password Update Profile

Email setting form

  • You can choose how deployment email will be sent , either by native php command or by any external smtp server Email setting form

git-auto-deploy's People

Contributors

xpablos avatar scriptburn avatar

Watchers

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