+fix 'web' spy now composer-update+npm-build at start
This commit is contained in:
parent
2c7e55b29d
commit
318b7cf05f
|
@ -15,13 +15,6 @@ TRIGGER="`realpath $ROOT/../../virtual/ci/web`";
|
||||||
|
|
||||||
while true; do
|
while true; do
|
||||||
|
|
||||||
|
|
||||||
while [ -f $TRIGGER ]; do
|
|
||||||
|
|
||||||
sleep 1;
|
|
||||||
|
|
||||||
done;
|
|
||||||
|
|
||||||
# 1. Go to root directory
|
# 1. Go to root directory
|
||||||
cd $ROOT/../..;
|
cd $ROOT/../..;
|
||||||
|
|
||||||
|
@ -29,7 +22,7 @@ while true; do
|
||||||
git submodule update --remote;
|
git submodule update --remote;
|
||||||
|
|
||||||
# 3. Update composer
|
# 3. Update composer
|
||||||
docker exec php-fpm composer -d /vhost;
|
docker exec php-fpm composer update -d /vhost;
|
||||||
|
|
||||||
# 4. Re-build js/scss
|
# 4. Re-build js/scss
|
||||||
docker exec php-fpm npm run build --prefix /vhost;
|
docker exec php-fpm npm run build --prefix /vhost;
|
||||||
|
@ -39,6 +32,9 @@ while true; do
|
||||||
# N. Recreate trigger
|
# N. Recreate trigger
|
||||||
test ! -f $TRIGGER && touch $TRIGGER;
|
test ! -f $TRIGGER && touch $TRIGGER;
|
||||||
|
|
||||||
sleep 1;
|
|
||||||
|
while [ -f $TRIGGER ]; do
|
||||||
|
sleep 1;
|
||||||
|
done;
|
||||||
|
|
||||||
done;
|
done;
|
Loading…
Reference in New Issue