+fix 'web' spy now composer-update+npm-build at start

This commit is contained in:
xdrm-brackets 2018-02-20 13:35:49 +01:00
parent 2c7e55b29d
commit 318b7cf05f
1 changed files with 5 additions and 9 deletions

View File

@ -15,13 +15,6 @@ TRIGGER="`realpath $ROOT/../../virtual/ci/web`";
while true; do
while [ -f $TRIGGER ]; do
sleep 1;
done;
# 1. Go to root directory
cd $ROOT/../..;
@ -29,7 +22,7 @@ while true; do
git submodule update --remote;
# 3. Update composer
docker exec php-fpm composer -d /vhost;
docker exec php-fpm composer update -d /vhost;
# 4. Re-build js/scss
docker exec php-fpm npm run build --prefix /vhost;
@ -39,6 +32,9 @@ while true; do
# N. Recreate trigger
test ! -f $TRIGGER && touch $TRIGGER;
sleep 1;
while [ -f $TRIGGER ]; do
sleep 1;
done;
done;