Updated to zend-expressive-swoole 2.0.1 removing all workarounds

This commit is contained in:
Alejandro Celaya 2018-11-28 20:43:44 +01:00
parent d0e0aea0f1
commit 6947805b5c
4 changed files with 2 additions and 17 deletions

View File

@ -42,7 +42,7 @@
"zendframework/zend-expressive-fastroute": "^3.0", "zendframework/zend-expressive-fastroute": "^3.0",
"zendframework/zend-expressive-helpers": "^5.0", "zendframework/zend-expressive-helpers": "^5.0",
"zendframework/zend-expressive-platesrenderer": "^2.0", "zendframework/zend-expressive-platesrenderer": "^2.0",
"zendframework/zend-expressive-swoole": "^2.0", "zendframework/zend-expressive-swoole": "^2.0.1",
"zendframework/zend-i18n": "^2.7", "zendframework/zend-i18n": "^2.7",
"zendframework/zend-inputfilter": "^2.8", "zendframework/zend-inputfilter": "^2.8",
"zendframework/zend-paginator": "^2.6", "zendframework/zend-paginator": "^2.6",

View File

@ -1,6 +0,0 @@
<?php
declare(strict_types=1);
// FIXME Dummy file just to prevent expressive-swoole fail while loading
return function () {
};

View File

@ -1,6 +0,0 @@
<?php
declare(strict_types=1);
// FIXME Dummy file just to prevent expressive-swoole fail while loading
return function () {
};

View File

@ -92,7 +92,4 @@ WORKDIR /home/shlink
# Expose swoole port # Expose swoole port
EXPOSE 8080 EXPOSE 8080
CMD /usr/local/bin/composer update && \ CMD /usr/local/bin/composer update && ./vendor/bin/zend-expressive-swoole start
# When restarting the container, swoole might think it is already in execution
# This forces the app to be started every second until the exit code is 0
until php ./vendor/bin/zend-expressive-swoole start; do sleep 1 ; done