0

I am trying to deploy my laravel app to Heroku.

Deployment is failing while trying to run composer install.

It fails with the following error

    Package illuminate/html is abandoned, you should avoid using it. Use laravelcollective/html instead.
       Generating optimized autoload files
       > Illuminate\Foundation\ComposerScripts::postAutoloadDump
       > @php artisan package:discover --ansi

       In Facade.php line 236:

         A facade root has not been set.  


       Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1
 !     WARNING: A post-autoload-dump script terminated with an error
 !     ERROR: Dependency installation failed!
 !     
 !     The 'composer install' process failed with an error. The cause
 !     may be the download or installation of packages, or a pre- or
 !     post-install hook (e.g. a 'post-install-cmd' item in 'scripts')
 !     in your 'composer.json'.

Composer install works fine in my local system.

Seems to be then some problem with the environment in my local and heroku.

I have an APP_KEY defined in my Heroku env variable.

Best Regards,

Saurav

saurav
  • 5,388
  • 10
  • 56
  • 101
  • did you try delete vendor folder and try composer install again? – Ahmed Atoui Sep 11 '19 at 15:13
  • no...but ran composer update – saurav Sep 11 '19 at 15:17
  • i think some packages doesn't install correctly ,remove vendor folder and run composer install – Ahmed Atoui Sep 11 '19 at 15:24
  • in local or in the server container ? because in the local its working fine...i did the same in server but the same problem – saurav Sep 11 '19 at 15:26
  • root cause is same as marked in the original link...but i was getting it for using Log facade in my config files...i started using php native error_log and it started working...but i will check how to make the Log facade work in the config files – saurav Sep 12 '19 at 07:54

0 Answers0