Skip to content

Instantly share code, notes, and snippets.

@svandragt svandragt/upgrade.sh
Created Aug 13, 2019

Embed
What would you like to do?
Known CMS upgrade automation (https://withknown.com/)
#!/usr/bin/env bash
rm -rf old
cp -R html old
pushd html
git stash
git pull
composer install
cd ..
ln -sf `pwd`/config.ini `pwd`/html/config.ini
ln -sf `pwd`/Uploads `pwd`/html/Uploads
popd
@svandragt

This comment has been minimized.

Copy link
Owner Author

commented Aug 13, 2019

This depends on the following directory structure:

config.ini  
Uploads/
html/
upgrade.sh  
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.