1
0
mirror of https://framagit.org/tykayn/date-poll-api synced 2023-08-25 08:23:11 +02:00
date-poll-api/update.sh

44 lines
1.1 KiB
Bash
Raw Normal View History

2019-12-30 19:12:47 +01:00
#!/bin/bash
echo "######################"
echo " time to update the framadate setup"
echo "######################"
2021-02-12 14:39:45 +01:00
# git reset --hard
2019-12-30 19:12:47 +01:00
git pull origin master
composer install
php bin/console doctrine:schema:update --force
echo "######################"
2021-02-12 14:39:45 +01:00
echo " update the funky frontend submodule "
2019-12-30 19:12:47 +01:00
echo "######################"
2021-02-12 15:02:33 +01:00
if [ ! -d "funky-framadate-front" ]; then
# initiate sub directory for funky front
git submodule init
fi
git config --global diff.submodule log
2019-12-30 19:12:47 +01:00
git submodule update
echo "######################"
echo " check dependencies of the frontend with yarn "
echo "######################"
cd funky-framadate-front
2021-02-12 15:02:33 +01:00
echo "######################"
echo " debug info : version of programs"
echo " "
git branch
node -v
yarn -v
echo "######################"
2019-12-30 19:12:47 +01:00
yarn
echo "######################"
echo " building the frontend "
echo "######################"
2021-02-12 15:02:33 +01:00
ng build --prod --baseHref=https://framadate-api.cipherbliss.com
2021-02-12 14:39:45 +01:00
2019-12-30 19:12:47 +01:00
echo "######################"
echo " copying built files in the public folder of the symfony project "
echo "######################"
2021-02-12 14:39:45 +01:00
cp -r dist/* ../public/
2019-12-30 19:12:47 +01:00
echo "######################"
echo " done "
echo "######################"