← All projects

autodeploy-github-bitbucket

by @kossa

31

A simple PHP script to auto deploy from github and bitbucket, and executing a command like "composer install"...

About this project

autodeploy-github-bitbucket A simple PHP script to auto-deploy from Github and Bitbucket, and executing a command like composer install ###Installation : Very simple, download the deploy.php file and put it in the root of your code directory. If you're working with Bitbucket, uncomment line 12 and comment line 9. Create a new repo on Github or Bitbucket, and push all your of code. Add your server's SSH key to Github or Bitbucket. In your server, clone the repo from Github or Bitbucket, for example : git clone git@github.com:user/repo.git Change the repository's owner on your server using : chown -R youruser:www-data repo. Note that you may have to sudo that command ;) You may, also, have to check the permissions for subdirectories and files: files => 644, folders => 755. Add a hook to Github or Bitbucket : Github : goto https://github.com/user/repo/settings/hooks/new, in "Payload URL", put the url to deploy.php from your server click on "Add webhook" button Bitbucket: goto https://bitbucket.org/user/repo/admin/hooks, select "POST" option in the select box, click on "Add hook", parte your URL to deploy.php file and click on "save"

From the project README on GitHub

Stars
31
Forks
5
Last push
1 Oct 2015

Add this badge to your README

Show that your project is listed on Made in Algeria.

Made in Algeria
[![Made in Algeria](https://www.madeinalgeria.dev/badge/autodeploy-github-bitbucket.svg)](https://www.madeinalgeria.dev/projects/autodeploy-github-bitbucket)

Related projects