Last active
July 24, 2016 22:20
Revisions
-
mnshankar revised this gist
Mar 18, 2014 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,5 @@ #!/bin/sh WEBROOT=/var/www/domain.com/project GIT_WORK_TREE=$WEBROOT git checkout -f #change directory to the project dir cd $WEBROOT -
mnshankar revised this gist
Mar 18, 2014 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,7 +1,7 @@ #!/bin/sh WEBROOT=/var/www/domain.com/public_html/project GIT_WORK_TREE=$WEBROOT git checkout -f #change directory to the project dir cd $WEBROOT rm -f storage/cache/* echo 'cache cleared' -
mnshankar created this gist
Mar 18, 2014 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,29 @@ #!/bin/sh WEBROOT=/var/www/domain.com/public_html/project GIT_WORK_TREE=$WEBROOT git checkout -f /usr/bin/git log -1 --pretty=format:'%h' --abbrev-commit>$WEBROOT/version.txt cd $WEBROOT rm -f storage/cache/* echo 'cache cleared' rm -f storage/views/* echo 'views cleared' # Check if a composer.json file is present if [ -f composer.json ]; then # Detect composer binary if which composer >/dev/null; then composer='composer' elif which composer.phar >/dev/null; then composer='composer.phar' else # Install composer curl -s http://getcomposer.org/installer | php >/dev/null composer='php composer.phar' fi # Install or update packages specified in the lock file $composer install fi # migrate database if required php artisan migrate