mirror of
https://github.com/deployphp/deployer.git
synced 2025-04-22 14:21:56 +02:00
Better logs:php-fpm task
This commit is contained in:
parent
06fba5538e
commit
0be1ddb169
@ -66,7 +66,11 @@ task('provision:php', function () {
|
||||
|
||||
desc('Shows php-fpm logs');
|
||||
task('logs:php-fpm', function () {
|
||||
run('tail -f /var/log/fpm-php.www.log');
|
||||
$fpmLogs = run("ls -1 /var/log | grep fpm");
|
||||
if (empty($fpmLogs)) {
|
||||
throw new \RuntimeException('No PHP-FPM logs found.');
|
||||
}
|
||||
run("sudo tail -f /var/log/$fpmLogs");
|
||||
})->verbose();
|
||||
|
||||
desc('Installs Composer');
|
||||
|
Loading…
x
Reference in New Issue
Block a user