This file contains 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 characters
#!/bin/sh | |
WEBROOT=/var/www/vhosts/[application folder] | |
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\n' | |
rm -f storage/views/* |
This file contains 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 characters
#!/bin/bash | |
VERSION_FILE=version.txt | |
GIT_PATH=/usr/local/git/bin/git | |
REMOTE_PATH=[full remote path to application root]/$VERSION_FILE | |
LOCAL_PATH=[full local path to application root]/$VERSION_FILE | |
TEST_SERVER=[test ip/domain] | |
PROD_SERVER=[prod ip/domain] | |
if [ -z "$1" ]; then |
NewerOlder