scripts install and update

This commit is contained in:
Baptiste Lemoine 2018-08-23 15:36:36 +02:00
parent 7a3171c15f
commit dae7c006d5
No known key found for this signature in database
GPG Key ID: 3A3B8ADA21ADF899
3 changed files with 18 additions and 1 deletions

View File

@ -116,7 +116,7 @@
</table>
<div class="well examples-depenses">
<strong>
Exemples:
Exemples de postes de dépenses à ajouter:
</strong>
{% endverbatim %}
{{ "

View File

@ -1,4 +1,8 @@
#!/bin/bash
echo "################################";
echo "start INSTALL of symfony project";
echo "################################";
echo "checking requirements";
composer --version
yarn --version
@ -16,3 +20,7 @@ sudo setfacl -R -m u:"$HTTPDUSER":rwX -m u:$(whoami):rwX var
echo "update database";
php bin/console doctrine:schema:update --dump-sql
php bin/console doctrine:schema:update --force
echo "################################";
echo "end INSTALL of symfony project";
echo "################################";

View File

@ -1,6 +1,15 @@
#/bin/bash
echo "###############################";
echo "start update of symfony project";
echo "###############################";
git pull origin master --strategy-option theirs
composer --version
yarn --version
yarn run encore production
php bin/console doctrine:schema:update --dump-sql
php bin/console doctrine:schema:update --force
php bin/console cache:clear -eprod
echo "###########";
echo "update done";
echo "###########";