You can use this script to provide min downtime during "composer update" cmd. Script should run at same directory with composer.json file
It creates new "vendor-YYYYmmddHis" directory, runs "composer update" command with this new directory as vendor dir. When finished, it changes "vendor" symbolic link to new directory.
./composer-update-zd.sh
Default "composer" cmd is "/usr/local/bin/composer". If you want to give different path, you can use
export COMPOSER_CMD=/usr/bin/composer;./composer-update-zd.sh
You can pass composer options and params e.g. :
./composer-update-zd.sh --no-dev
Also you can download and run script at "composer.json" directory:
/usr/bin/curl -s -L "https://raw.githubusercontent.com/Teknasyon-Teknoloji/composer-update-zd/master/composer-update-zd.sh" | bash
"--no-dev" option
/usr/bin/curl -s -L "https://raw.githubusercontent.com/Teknasyon-Teknoloji/composer-update-zd/master/composer-update-zd.sh" | bash -s -- --no-dev
You can contribute by forking the repo and creating pull requests. You can also create issues or feature requests.
At first run, it removes vendor directory and replace with symbolic link. Use at your own risk! Do not use at production without testing it. Your project/product may give errors.
This project is licensed under the MIT license. LICENSE
file can be found in this repository.