Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/inacho/git-deploy-php
Sync the files of a Git repository with the Web server
https://github.com/inacho/git-deploy-php
Last synced: about 1 month ago
JSON representation
Sync the files of a Git repository with the Web server
- Host: GitHub
- URL: https://github.com/inacho/git-deploy-php
- Owner: inacho
- License: mit
- Created: 2013-09-17T13:35:33.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-10-26T16:43:20.000Z (about 11 years ago)
- Last Synced: 2023-03-23T04:01:52.521Z (almost 2 years ago)
- Language: PHP
- Homepage:
- Size: 313 KB
- Stars: 20
- Watchers: 4
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Git Deploy PHP
Sync the files of a Git repository with the Web server according to the following rules:
* All files in the branch being deployed will be copied to the deployment directory
* Files that were deleted in the Git repo since the last deployment will be deleted from the deployment directory
* Untracked files in the deploy directory will be left alone## Installation
1. Configure and copy **deploy.php** and **scripts** to the Git repository of your web application
2. Clone the Git repository in the web server
3. Deploy when you need## How to deploy
### Web page
Open **deploy.php** in the web server, login and execute the deploy
### SSH
Login to the web server with SSH and execute **scripts/git-local-deploy.sh**
Alternatively, you can configure and execute **scripts/git-remote-deploy.sh** in your local machine. This is a shortcut to execute **scripts/git-local-deploy.sh** in the web server## Screenshots
![Deploy](screenshots/deploy.png)
![Login](screenshots/login.png)## License
Released under the MIT License.