deploy.sh 272 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12
#!/bin/bash

set -e 

cd ~/MetaGer_neu
php artisan requests:gather
if [ -f ~/MetaGer/artisan ]; then php ~/MetaGer/artisan down;fi
cd ~/
while [ -d ~/MetaGer ]; do rm -rf ~/MetaGer;done
mv MetaGer_neu MetaGer
sudo pkill --signal SIGHUP supervisord
php ~/MetaGer/artisan up