Simple bash deployment script for basic web projects.
- checkout from Git or Github
- can replace active version in file
- install and update composer
- start phing deployment
- set custom permission on folders
- create symlinks from current rls to web folder
- clear cache folders
- bash, git, php, rsync or scp
- Deploy Server
- Target Server
To make the deploy process simple as possible i recommend this directory structure on your server.
-
Deploy Server
- /path/to/bash-simple-deployment
-
Web Server (Target)
- /var/www/project
- /active - symlink to newest release
- /releases - all deployed releases
- /X.X.X - Releases
- /var/www/project
Modify the config values in /config/****.sh to your needs. Change your webserver config and modify the path to the "active" directory. The active directory link to your active public index.
Make it executable and then start the script.
chmod +x run.sh
./run.sh