autodeploy-github-bitbucket
بواسطة @kossa
31
A simple PHP script to auto deploy from github and bitbucket, and executing a command like "composer install"...
عن هذا المشروع
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"
من ملف README الخاص بالمشروع على GitHub
- النجوم
- 31
- التفريعات
- 5
- آخر تحديث
- 01/10/2015
أضف هذه الشارة إلى ملف README
أظهر أن مشروعك مُدرج على «صُنع في الجزائر».
[](https://www.madeinalgeria.dev/projects/autodeploy-github-bitbucket)