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/polyfills-es5.js
|
||||||
public/scripts.js
|
public/scripts.js
|
||||||
public/styles.css
|
public/styles.css
|
||||||
|
public/*
|
||||||
|
|
||||||
###> symfony/phpunit-bridge ###
|
###> symfony/phpunit-bridge ###
|
||||||
.phpunit
|
.phpunit
|
||||||
|
13
update.sh
13
update.sh
@ -2,6 +2,8 @@
|
|||||||
echo "######################"
|
echo "######################"
|
||||||
echo " time to update the framadate setup"
|
echo " time to update the framadate setup"
|
||||||
echo "######################"
|
echo "######################"
|
||||||
|
|
||||||
|
COMMAND_BUILD="build:prod:demobliss"
|
||||||
# git reset --hard
|
# git reset --hard
|
||||||
git pull origin master
|
git pull origin master
|
||||||
|
|
||||||
@ -32,16 +34,23 @@ echo " yarn version "
|
|||||||
yarn -v
|
yarn -v
|
||||||
echo " "
|
echo " "
|
||||||
echo "######################"
|
echo "######################"
|
||||||
|
git fetch
|
||||||
|
git pull
|
||||||
yarn
|
yarn
|
||||||
echo "######################"
|
echo "######################"
|
||||||
echo " building the frontend "
|
echo " building the frontend "
|
||||||
|
echo " npm run $COMMAND_BUILD "
|
||||||
echo "######################"
|
echo "######################"
|
||||||
ng build --prod --baseHref=https://framadate-api.cipherbliss.com
|
npm run $COMMAND_BUILD
|
||||||
|
|
||||||
echo "######################"
|
echo "######################"
|
||||||
echo " copying built files in the public folder of the symfony project "
|
echo " copying built files in the public folder of the symfony project "
|
||||||
echo "######################"
|
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 "######################"
|
||||||
echo " done "
|
echo " done "
|
||||||
echo "######################"
|
echo "######################"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user