mirror of
https://framagit.org/tykayn/date-poll-api
synced 2023-08-25 08:23:11 +02:00
ignore some public files, copy build
This commit is contained in:
parent
2314a0acac
commit
0fc4802770
1
.gitignore
vendored
1
.gitignore
vendored
@ -32,6 +32,7 @@ public/polyfills-es2018.js
|
||||
public/polyfills-es5.js
|
||||
public/scripts.js
|
||||
public/styles.css
|
||||
public/*
|
||||
|
||||
###> symfony/phpunit-bridge ###
|
||||
.phpunit
|
||||
|
13
update.sh
13
update.sh
@ -2,6 +2,8 @@
|
||||
echo "######################"
|
||||
echo " time to update the framadate setup"
|
||||
echo "######################"
|
||||
|
||||
COMMAND_BUILD="build:prod:demobliss"
|
||||
# git reset --hard
|
||||
git pull origin master
|
||||
|
||||
@ -32,16 +34,23 @@ echo " yarn version "
|
||||
yarn -v
|
||||
echo " "
|
||||
echo "######################"
|
||||
git fetch
|
||||
git pull
|
||||
yarn
|
||||
echo "######################"
|
||||
echo " building the frontend "
|
||||
echo " npm run $COMMAND_BUILD "
|
||||
echo "######################"
|
||||
ng build --prod --baseHref=https://framadate-api.cipherbliss.com
|
||||
npm run $COMMAND_BUILD
|
||||
|
||||
echo "######################"
|
||||
echo " copying built files in the public folder of the symfony project "
|
||||
echo "######################"
|
||||
cp -r dist/* ../public/
|
||||
rm -rf ../public/*
|
||||
cp -r dist/framadate/* ../public/
|
||||
COUNT_FILES = ls -larth ../public |wc -l
|
||||
cd ..
|
||||
echo " $COUNT_FILES fichiers de build copiés dans /public"
|
||||
echo "######################"
|
||||
echo " done "
|
||||
echo "######################"
|
||||
|
Loading…
Reference in New Issue
Block a user