When you have deployed your Laravel application across multiple servers, for example when running multiple workers, you can run into a situation where you need to quickly tail the log to see what is going on. Note that this one contains the current date, if you have the single log channel instead of daily, you can just use laravel.log. The || true at the end of the statement, is to ensure no error is thrown if the log file does not exist. $servers = [ 'https://rias.be/cdn-cgi/l/email-protection', 'https://rias.be/cdn-cgi/l/email-protection' ]; @task('log', ['on' => $servers, 'parallel' => true]) tail -f /home/forge/example.com/storage/logs/laravel-{{ date('Y-m-d')}}.log || true @endtask Which you can then run using: Envoy will then SSH into the different servers for you in parallel and start tailing the log.
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future. Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future.
Community Partners