| @@ -14,10 +14,7 @@ copy_files() { | |||||
| cd ${GIT_PATH} | cd ${GIT_PATH} | ||||
| sudo GIT_SSH_COMMAND="ssh -i /home/service-spawntree/.ssh/id_rsa -p 1122" git pull | sudo GIT_SSH_COMMAND="ssh -i /home/service-spawntree/.ssh/id_rsa -p 1122" git pull | ||||
| echo "$(tput setab 2)matsen api has been PULLED$(tput sgr 0)" | echo "$(tput setab 2)matsen api has been PULLED$(tput sgr 0)" | ||||
| CONFIG_FILES="bundles.php preload.php routes.yaml services.yaml" | |||||
| CONFIG_DIRS="packages routes" | |||||
| ROOT_DIRS="bin migrations src" | |||||
| ROOT_DIRS="bin config migrations src" | |||||
| # Erstelle zuerst alle notwendigen Verzeichnisse | # Erstelle zuerst alle notwendigen Verzeichnisse | ||||
| create_directories | create_directories | ||||
| @@ -26,16 +23,6 @@ copy_files() { | |||||
| rm -rf ${TARGET_PATH}/composer.json | rm -rf ${TARGET_PATH}/composer.json | ||||
| cp -rf ${GIT_PATH}/composer.json ${TARGET_PATH} | cp -rf ${GIT_PATH}/composer.json ${TARGET_PATH} | ||||
| for file in $CONFIG_FILES; do | |||||
| rm -rf ${TARGET_PATH}/config/$file | |||||
| cp -rf ${GIT_PATH}/config/$file ${TARGET_PATH}/config/ | |||||
| done | |||||
| for dir in $CONFIG_DIRS; do | |||||
| rm -rf ${TARGET_PATH}/config/$dir | |||||
| cp -rf ${GIT_PATH}/config/$dir ${TARGET_PATH}/config/ | |||||
| done | |||||
| for dir in $ROOT_DIRS; do | for dir in $ROOT_DIRS; do | ||||
| rm -rf ${TARGET_PATH}/$dir | rm -rf ${TARGET_PATH}/$dir | ||||
| cp -rf ${GIT_PATH}/$dir ${TARGET_PATH}/ | cp -rf ${GIT_PATH}/$dir ${TARGET_PATH}/ | ||||