lando / laravel

The Official Laravel Lando Plugin
https://docs.lando.dev/laravel/
GNU General Public License v3.0
12 stars 11 forks source link

FIX nginx: 504 Gateway Time-out #17

Closed allanlaal closed 2 years ago

allanlaal commented 2 years ago

use case:

dev machines with debug stuff running can be very slow, especially when using a remote DB server currently Lando running Laravel times out a lot

FIX:

bigger timeout

allanlaal commented 2 years ago

solved this Edge Case by appending this to my .lando.yml

  services:
    appserver:
      build_as_root:
        - echo 'Setting Custom PHP settings...'
        - touch                                /usr/local/etc/php/conf.d/zzzz-my-custom.ini
        - echo 'max_execution_time = 500'   >> /usr/local/etc/php/conf.d/zzzz-my-custom.ini
        - echo 'hard_timeout = 500'         >> /usr/local/etc/php/conf.d/zzzz-my-custom.ini