【发布时间】:2019-02-26 12:01:36
【问题描述】:
我正在运行一个基于 richarvey/nginx-php-fpm:latest 的 docker 容器
我有 laravel 5.5 完美运行,里面有 Dusk。
want to do dusk test with docker alpine
现在,在路线中,我有一个 Artisan::call('dusk')。这在进行工匠服务时运行良好,但在 docker 上的 nginx 中却没有。 出现“用法:php-fpm”消息。
这是我的位置块:
location ~ \.php$ {
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/run/php-fpm.sock;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
fastcgi_index index.php;
include fastcgi_params;
}
这一定很简单,但我想不通,如何通过使用 api 调用来调用黄昏?
PS:此设置允许我们进行压力测试,而不仅仅是使用 Apache Benchmark 工具加载页面。
【问题讨论】:
标签: php laravel docker laravel-artisan alpine