2017 © Pedro Peláez
 

library laravel-auto-git-pull

Laravel Auto Git Pull

image

ahmeti/laravel-auto-git-pull

Laravel Auto Git Pull

  • Saturday, February 3, 2018
  • by ahmeti
  • Repository
  • 1 Watchers
  • 0 Stars
  • 31 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 19 % Grown

The README.md

Laravel Auto Git Pull with SSH

.env Variables

AUTO_PULL_SECRET=xxxxxxxxxxxxxxxxxx
AUTO_PULL_DIR=/var/www/site.com
AUTO_PULL_SERVER_IP=111.11.111.111
AUTO_PULL_SSH_USER=root
AUTO_PULL_SSH_PRIVATE_KEY=storage/app/id_rsa
AUTO_PULL_SSH_USER_PASS=

Add Route in api.php

Route::any('/auto-git-pull', '\Ahmeti\LaravelAutoGitPull\LaravelAutoGitPullController@pull');

Create Webhook Url on Bitbucket.com

http://site.com/api/auto-git-pull?secret=xxxxxxxxxxxxxxxxxx

Result

{
    "status": true,
    "message": "Success!",
    "data": [
        "No local changes to save",
        "Already up-to-date."
    ],
    "errors": [

    ]
}

The Versions

03/02 2018

dev-master

9999999-dev https://github.com/ahmeti/laravel-auto-git-pull

Laravel Auto Git Pull

  Sources   Download

MIT

The Requires

 

laravel git auto pull