Use multirun
This commit is contained in:
parent
8689818ac9
commit
a1824850c9
|
|
@ -23,6 +23,7 @@ RUN set -ex \
|
||||||
&& echo "Setting up PHP extensions" \
|
&& echo "Setting up PHP extensions" \
|
||||||
&& apk add --no-cache \
|
&& apk add --no-cache \
|
||||||
curl \
|
curl \
|
||||||
|
multirun \
|
||||||
nginx \
|
nginx \
|
||||||
tar \
|
tar \
|
||||||
php7 \
|
php7 \
|
||||||
|
|
|
||||||
|
|
@ -12,9 +12,6 @@ chown -R www-data:bookstack bootstrap/cache public/uploads storage
|
||||||
php artisan cache:clear
|
php artisan cache:clear
|
||||||
php artisan view:clear
|
php artisan view:clear
|
||||||
|
|
||||||
echo "Starting Nginx:"
|
|
||||||
nginx
|
|
||||||
|
|
||||||
echo "Getting PPM ready:"
|
echo "Getting PPM ready:"
|
||||||
trapIt() {
|
trapIt() {
|
||||||
"$@" &
|
"$@" &
|
||||||
|
|
@ -27,5 +24,5 @@ trapIt() {
|
||||||
exit $ec
|
exit $ec
|
||||||
}
|
}
|
||||||
|
|
||||||
echo "Starting PPM:"
|
echo "Starting Nginx & PPM:"
|
||||||
trapIt /ppm/vendor/bin/ppm start --ansi --no-interaction --config=ppm.json
|
multirun nginx trapIt /ppm/vendor/bin/ppm start --ansi --no-interaction --config=ppm.json
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue