添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
相关文章推荐
风流倜傥的黄豆  ·  shell ...·  2 月前    · 
大鼻子的手链  ·  Chinese Catholic ...·  1 年前    · 
温柔的金针菇  ·  Utilisation des ...·  1 年前    · 

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement . We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account Generating optimized autoload files [[email protected]]: Class Illuminate\Foundation\ComposerScripts is not autoloadable, can not call post-autoload-dump script Generating optimized autoload files [[email protected]]: Class Illuminate\Foundation\ComposerScripts is not autoloadable, can not call post-autoload-dump script JohnniePeixoto opened this issue Apr 3, 2020 · 1 comment

Hi @nickfan ,
i'm running on a problem when deploying my laravel project remotely to the server.

When it tries to run "composer dump-autoload --optimize" or any "php artisan..." I get the error

Generating optimized autoload files
Class Illuminate\Foundation\ComposerScripts is not autoloadable, can not call post-autoload-dump script
> @php artisan package:discover --ansi
PHP Fatal error:  Uncaught Error: Class 'Illuminate\Foundation\Application' not found in /var/www/crechedigital.com/pre-prod/releases/release_20200403135242/bootstrap/app.php:14
Stack trace:
#0 /var/www/crechedigital.com/pre-prod/releases/release_20200403135242/artisan(20): require_once()
#1 {main}
thrown in /var/www/crechedigital.com/pre-prod/releases/release_20200403135242/bootstrap/app.php on line 14
Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 255

If I execute a "composer update" before on the server, it works. But I dont think it is the recommended approach. Have you already faced this or know how can I resolve?
Thanks in advance, cheers from Brazil.

have you ever tried to update your global composer component by:

composer global update

or try to

composer install

not composer update