https://github.com/lawzava/automatic-atomic-deploy
Scripts for atomic deployments based on git hooks. Optimized for Laravel.
https://github.com/lawzava/automatic-atomic-deploy
deploy git github hooks laravel
Last synced: about 2 months ago
JSON representation
Scripts for atomic deployments based on git hooks. Optimized for Laravel.
- Host: GitHub
- URL: https://github.com/lawzava/automatic-atomic-deploy
- Owner: lawzava
- Created: 2020-01-10T10:51:25.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-01-23T16:43:37.000Z (over 5 years ago)
- Last Synced: 2025-02-05T10:49:40.812Z (over 1 year ago)
- Topics: deploy, git, github, hooks, laravel
- Language: Shell
- Homepage:
- Size: 2.93 KB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Atomic Web Deploy
This script can be used for automated atomic deployment of web applications. Although Makefile is tailored for Laravel, feel free to change according your needs.
### Prerequisites
- Web server points to /var/www/{app name}/current (/current/public in case of Laravel)
- Git repository available through ssh / no password pull on /var/www/{app name}/deploy-cache
### Recommendations
- Don't use file-based storage, it will be removed unless handled correctly in Makefile
- If you will use file-based sessions, they will be removed as well
### Usage
- Manual deploy - invoke deploy.sh followed by folder name, e.g. `deploy.sh app`
- To enable automated deploys on push, invoke the deploy script on webhook and register it within the repository. Recommended tool: [https://github.com/adnanh/webhook](https://github.com/adnanh/webhook) sample file - hooks.json