diff --git a/update.sh b/update.sh index 587217c..26db18d 100755 --- a/update.sh +++ b/update.sh @@ -1,14 +1,7 @@ #!/bin/bash -echo "######################" -echo " time to update the framadate setup" -echo "######################" +# script d'update de framadate api, fait pour fonctionner avec le sous module git funky framadate -COMMAND_BUILD="build:prod:demobliss" -# git reset --hard -git pull origin master -composer install -php bin/console doctrine:schema:update --force # bash colors cecho() { local code="\033[" @@ -27,6 +20,17 @@ cecho() { echo -e "$text" } +cecho g "######################" +cecho g " time to update the framadate setup" +cecho g "######################" + +COMMAND_BUILD="build:prod:demobliss" +# git reset --hard +git pull origin master + +composer install +php bin/console doctrine:schema:update --force + cecho g "######################" cecho g " update the funky frontend submodule " cecho g "############################################" @@ -87,14 +91,18 @@ cd funky-framadate-front cecho g "######################" cecho g " debug info : version of programs" cecho g " " -cecho g " git current branch " +cecho b " git current branch " git show-branch -cecho g " node version " +cecho b " node version " node -v -cecho g " yarn version " +cecho b " yarn version " yarn -v cecho g " " -cecho g "######################" +cecho b "##############################################" +cecho b " update of the funky part, clean of local repo" +cecho g " " +git reset --hard +git remote -v git fetch git pull yarn