#!/bin/bash
#メインサイト用
echo "Start UPDATE..." echo "/var/www/public"
cd /var/www/public
git checkout master git pull && git checkout $(git describe --tags --abbrev=0)
yes|php -d allow_url_fopen=1 composer.phar install --no-dev
php artisan config:clear
php artisan migrate
php artisan db:seed
echo "Finish"
#blog用
echo "Start UPDATE..." echo "/var/www/blog"
cd /var/www/blog
git checkout master git pull && git checkout $(git describe --tags --abbrev=0)
yes|php -d allow_url_fopen=1 composer.phar install --no-dev
php artisan config:clear
php artisan migrate
php artisan db:seed
echo "Finish"
echo "UPDATE Finish Public/nc"