To extend the timeout for Forge commands, you can modify the timeout value in your Laravel Forge deployment script. Here's how you can do it:
- Log in to your Laravel Forge account.
- Go to the server where you want to extend the timeout.
- Click on the "Deployment" tab.
- Scroll down to the "Deployment Script" section.
- In the deployment script, locate the line where the
php artisancommand is executed. It should look something like this:
cd /home/forge/default
git pull origin master
composer install --no-interaction --prefer-dist --optimize-autoloader
php artisan migrate --force
- Add the
timeoutflag to thephp artisancommand and specify the desired timeout value in seconds. For example, to set the timeout to 10 minutes, you can modify the line to:
php artisan migrate --force --timeout=600
- Save the deployment script.
- Redeploy your application for the changes to take effect.
By setting the timeout value to a higher number, you can extend the timeout for Forge commands, allowing your php artisan scout:import command to run for a longer duration without timing out.
Note: Keep in mind that increasing the timeout value may have an impact on the overall performance of your server, so it's important to find a balance between the timeout duration and the server's resources.