Laravel deployment issues

I am having problems deploying my laravel app.

I followed the instructions and created the files, but it keeps logging these errors:

FastCGI sent in stderr: “PHP message: PHP Warning: require(/var/www/html/public/…/vendor/autoload.php): failed to open stream: No such file or directory in /var/www/html/public/index.php on line 34PHP message: PHP Fatal error: require(): Failed opening required ‘/var/www/html/public/…/vendor/autoload.php’ (include_path=‘.:/usr/local/lib/php’) in /var/www/html/public/index.php on line 34” while reading response header from upstream, client: 127.0.0.1, server: _, request: “GET / HTTP/1.1”, upstream: “fastcgi://unix:/var/run/php-fpm.sock:”, host: "haunted-inventory-laravel.onrender.com

WARNING: [pool www] child 83 said into stderr: “NOTICE: PHP message: PHP Fatal error: require(): Failed opening required ‘/var/www/html/public/…/vendor/autoload.php’ (include_path=‘.:/usr/local/lib/php’) in /var/www/html/public/index.php on line 34”

My github repo is GitHub - rlw92/haunted-inventory-laravel if that helps.

Any help would be greatly appreciated. Thank you.

Hi there,

The /var/www/html/public/…/vendor/autoload.php file is missing. This should be created by running composer install. If you are using our Larvel example then this is run from the start.sh script included from the base image: https://github.com/richarvey/nginx-php-fpm/blob/main/scripts/start.sh#L222. This is provided you have a compser.lock and are not disabling composer from running.

Regards,

Keith
Render Support, UTC+10 :australia: