# Install composer plugins
RUN composer global require --optimize-autoloader \
"hirak/prestissimo:${VERSION_PRESTISSIMO_PLUGIN}" && \
composer global dumpautoload --optimize && \
composer clear-cache
<h3 data-v-34777841></h3>
без содержимого!vue add prerender-spaвместо npm модуля по этой инструкции https://www.npmjs.com/package/vue-cli-plugin-prere...
location / {
try_files $uri $uri/ /index.php?q=$uri$args;
}
location / {
try_files $uri /index.php?$query_string;
}
traefik:
image: traefik:v2.0
container_name: "${PROJECT_NAME}_traefik"
command: --api.insecure=true --providers.docker
ports:
- '80:80'
# - '8080:8080' # Dashboard
volumes:
- /var/run/docker.sock:/var/run/docker.sock
// Allow from any origin
if (isset($_SERVER['HTTP_ORIGIN'])) {
// should do a check here to match $_SERVER['HTTP_ORIGIN'] to a
// whitelist of safe domains
header("Access-Control-Allow-Origin: {$_SERVER['HTTP_ORIGIN']}");
header('Access-Control-Allow-Credentials: true');
header('Access-Control-Max-Age: 86400'); // cache for 1 day
}
// Access-Control headers are received during OPTIONS requests
if ($_SERVER['REQUEST_METHOD'] == 'OPTIONS') {
if (isset($_SERVER['HTTP_ACCESS_CONTROL_REQUEST_METHOD']))
header("Access-Control-Allow-Methods: GET, POST, PUT, DELETE, OPTIONS");
if (isset($_SERVER['HTTP_ACCESS_CONTROL_REQUEST_HEADERS']))
header("Access-Control-Allow-Headers: {$_SERVER['HTTP_ACCESS_CONTROL_REQUEST_HEADERS']}");
}
php_1 | [21-Apr-2020 17:10:43] NOTICE: PHP message: PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20160303/php_openssl.dll' - /usr/local/lib/php/extensions/no-debug-non-zts-20160303/php_openssl.dll: cannot open shared object file: No such file or directory in Unknown on line 0
php_1 | [21-Apr-2020 17:10:43] NOTICE: PHP message: PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20160303/php_curl.dll' - /usr/local/lib/php/extensions/no-debug-non-zts-20160303/php_curl.dll: cannot open shared object file: No such file or directory in Unknown on line 0
php_1 | [21-Apr-2020 17:10:43] NOTICE: PHP message: PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20160303/php_xmlrpc.dll' - /usr/local/lib/php/extensions/no-debug-non-zts-20160303/php_xmlrpc.dll: cannot open shared object file: No such file or directory in Unknown on line 0
php_1 | [21-Apr-2020 17:10:43] ERROR: failed to create new listening socket: socket(): Address family not supported by protocol (97)
php_1 | [21-Apr-2020 17:10:43] ERROR: failed to create new listening socket: socket(): Address family not supported by protocol (97)
php_1 | [21-Apr-2020 17:10:43] ERROR: FPM initialization failed
php_1 | [21-Apr-2020 17:10:43] ERROR: FPM initialization failed
php_1 | [21-Apr-2020 17:10:44] NOTICE: PHP message: PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20160303/php_openssl.dll' - /usr/local/lib/php/extensions/no-debug-non-zts-20160303/php_openssl.dll: cannot open shared object file: No such file or directory in Unknown on line 0
php_1 | [21-Apr-2020 17:10:44] NOTICE: PHP message: PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20160303/php_curl.dll' - /usr/local/lib/php/extensions/no-debug-non-zts-20160303/php_curl.dll: cannot open shared object file: No such file or directory in Unknown on line 0
php_1 | [21-Apr-2020 17:10:44] NOTICE: PHP message: PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20160303/php_xmlrpc.dll' - /usr/local/lib/php/extensions/no-debug-non-zts-20160303/php_xmlrpc.dll: cannot open shared object file: No such file or directory in Unknown on line 0
php_1 | [21-Apr-2020 17:10:44] ERROR: failed to create new listening socket: socket(): Address family not supported by protocol (97)
php_1 | [21-Apr-2020 17:10:44] ERROR: failed to create new listening socket: socket(): Address family not supported by protocol (97)
php_1 | [21-Apr-2020 17:10:44] ERROR: FPM initialization failed
php_1 | [21-Apr-2020 17:10:44] ERROR: FPM initialization failed
php_1 | [21-Apr-2020 17:10:45] NOTICE: PHP message: PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20160303/php_openssl.dll' - /usr/local/lib/php/extensions/no-debug-non-zts-20160303/php_openssl.dll: cannot open shared object file: No such file or directory in Unknown on line 0
php_1 | [21-Apr-2020 17:10:45] NOTICE: PHP message: PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20160303/php_curl.dll' - /usr/local/lib/php/extensions/no-debug-non-zts-20160303/php_curl.dll: cannot open shared object file: No such file or directory in Unknown on line 0
php_1 | [21-Apr-2020 17:10:45] NOTICE: PHP message: PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20160303/php_xmlrpc.dll' - /usr/local/lib/php/extensions/no-debug-non-zts-20160303/php_xmlrpc.dll: cannot open shared object file: No such file or directory in Unknown on line 0
php_1 | [21-Apr-2020 17:10:45] ERROR: failed to create new listening socket: socket(): Address family not supported by protocol (97)
php_1 | [21-Apr-2020 17:10:45] ERROR: failed to create new listening socket: socket(): Address family not supported by protocol (97)
php_1 | [21-Apr-2020 17:10:45] ERROR: FPM initialization failed
php_1 | [21-Apr-2020 17:10:45] ERROR: FPM initialization failed
php_1 | [21-Apr-2020 17:10:47] NOTICE: PHP message: PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20160303/php_openssl.dll' - /usr/local/lib/php/extensions/no-debug-non-zts-20160303/php_openssl.dll: cannot open shared object file: No such file or directory in Unknown on line 0
php_1 | [21-Apr-2020 17:10:47] NOTICE: PHP message: PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20160303/php_curl.dll' - /usr/local/lib/php/extensions/no-debug-non-zts-20160303/php_curl.dll: cannot open shared object file: No such file or directory in Unknown on line 0
php_1 | [21-Apr-2020 17:10:47] NOTICE: PHP message: PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20160303/php_xmlrpc.dll' - /usr/local/lib/php/extensions/no-debug-non-zts-20160303/php_xmlrpc.dll: cannot open shared object file: No such file or directory in Unknown on line 0
php_1 | [21-Apr-2020 17:10:47] ERROR: failed to create new listening socket: socket(): Address family not supported by protocol (97)
php_1 | [21-Apr-2020 17:10:47] ERROR: failed to create new listening socket: socket(): Address family not supported by protocol (97)
php_1 | [21-Apr-2020 17:10:47] ERROR: FPM initialization failed
php_1 | [21-Apr-2020 17:10:47] ERROR: FPM initialization failed
php_1 | [21-Apr-2020 17:10:48] NOTICE: PHP message: PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20160303/php_openssl.dll' - /usr/local/lib/php/extensions/no-debug-non-zts-20160303/php_openssl.dll: cannot open shared object file: No such file or directory in Unknown on line 0
php_1 | [21-Apr-2020 17:10:48] NOTICE: PHP message: PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20160303/php_curl.dll' - /usr/local/lib/php/extensions/no-debug-non-zts-20160303/php_curl.dll: cannot open shared object file: No such file or directory in Unknown on line 0
php_1 | [21-Apr-2020 17:10:48] NOTICE: PHP message: PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20160303/php_xmlrpc.dll' - /usr/local/lib/php/extensions/no-debug-non-zts-20160303/php_xmlrpc.dll: cannot open shared object file: No such file or directory in Unknown on line 0
php_1 | [21-Apr-2020 17:10:48] ERROR: failed to create new listening socket: socket(): Address family not supported by protocol (97)
php_1 | [21-Apr-2020 17:10:48] ERROR: failed to create new listening socket: socket(): Address family not supported by protocol (97)
php_1 | [21-Apr-2020 17:10:48] ERROR: FPM initialization failed
php_1 | [21-Apr-2020 17:10:48] ERROR: FPM initialization failed
php_1 | [21-Apr-2020 17:10:51] NOTICE: PHP message: PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20160303/php_openssl.dll' - /usr/local/lib/php/extensions/no-debug-non-zts-20160303/php_openssl.dll: cannot open shared object file: No such file or directory in Unknown on line 0
php_1 | [21-Apr-2020 17:10:51] NOTICE: PHP message: PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20160303/php_curl.dll' - /usr/local/lib/php/extensions/no-debug-non-zts-20160303/php_curl.dll: cannot open shared object file: No such file or directory in Unknown on line 0
php_1 | [21-Apr-2020 17:10:51] NOTICE: PHP message: PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20160303/php_xmlrpc.dll' - /usr/local/lib/php/extensions/no-debug-non-zts-20160303/php_xmlrpc.dll: cannot open shared object file: No such file or directory in Unknown on line 0
php_1 | [21-Apr-2020 17:10:51] ERROR: failed to create new listening socket: socket(): Address family not supported by protocol (97)
php_1 | [21-Apr-2020 17:10:51] ERROR: failed to create new listening socket: socket(): Address family not supported by protocol (97)
php_1 | [21-Apr-2020 17:10:51] ERROR: FPM initialization failed
php_1 | [21-Apr-2020 17:10:51] ERROR: FPM initialization failed
...