Hello, %username%.
First english post here. Just for lulz 😀
Actually post related to gift i’ve got from
Here some stickers and postcard with handwritten message.
So I decided to write little post about deploy on my pet project —
I also have work project on deploybot, but it works almost same. Only difference is servers amount, but I found some great servers for e-commerce at
I use DeployBot about 9 months totally and last 3 months with the paid account.
So my deploy script is not canonical and not safe, but it works 🙂
After commit on master — github send info to DeployBot.
Then it just pulling data from github and then run/install/update composer and depencies.
And here full script:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
echo 'Changing dir'; cd /var/www/ echo 'Pulling git'; git pull origin master if [ ! -f /usr/local/bin/composer ]; then echo 'Installing composer'; php -r "readfile('https://getcomposer.org/installer');" | php mv composer.phar /usr/local/bin/composer echo 'Install depencies'; composer install else echo 'Update depencies'; composer update fi |
Thats all!
At current moment a have about 2500 deploys passed.