Sfoglia il codice sorgente

deployment changes

master
Daniel 1 anno fa
parent
commit
26806472ee
1 ha cambiato i file con 1 aggiunte e 14 eliminazioni
  1. +1
    -14
      1deployMatsenApi.sh

+ 1
- 14
1deployMatsenApi.sh Vedi File

@@ -14,10 +14,7 @@ copy_files() {
cd ${GIT_PATH}
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)"

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
create_directories
@@ -26,16 +23,6 @@ copy_files() {
rm -rf ${TARGET_PATH}/composer.json
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
rm -rf ${TARGET_PATH}/$dir
cp -rf ${GIT_PATH}/$dir ${TARGET_PATH}/


Caricamento…
Annulla
Salva