Getting a little frustrated with a project ive been working on lately where for some reason it worked on my local host but would not push and deploy in Forge due to certain files missing.
Everything was working fine locally and on the testbed but for some reason after updateing a view file it stopped being able to commit. So i tried to remover the site and create a new one but that didnt work and now im stuck.
Ive got to a stage now where i cant update using composer due to this error.
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Warning: The lock file is not up to date with the latest changes in composer.json. You may be getting outdated dependencies. Run update to update them.
Nothing to install or update
Generating optimized autoload files
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover
PHP Fatal error: Uncaught Error: Class 'Illuminate\Log\LogManager' not found in /Users/chrisbowen/projects/my-app/vendor/laravel/framework/src/Illuminate/Log/LogServiceProvider.php:17
Stack trace:
#0 /Users/chrisbowen/projects/my-app/vendor/laravel/framework/src/Illuminate/Container/Container.php(764): Illuminate\Log\LogServiceProvider->Illuminate\Log\{closure}(Object(Illuminate\Foundation\Application), Array)
#1 /Users/chrisbowen/projects/my-app/vendor/laravel/framework/src/Illuminate/Container/Container.php(646): Illuminate\Container\Container->build(Object(Closure))
#2 /Users/chrisbowen/projects/my-app/vendor/laravel/framework/src/Illuminate/Container/Container.php(601): Illuminate\Container\Container->resolve('log', Array)
#3 /Users/chrisbowen/projects/my-app/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(734): Illuminate\Container\Container->make('log', Array)
#4 /Users/chrisbowen/projects/my-app/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(106): Illuminate\Foundation\Appl in /Users/chrisbowen/projects/expost/vendor/laravel/framework/src/Illuminate/Log/LogServiceProvider.php on line 17
PHP Fatal error: Uncaught Error: Class 'Illuminate\Log\LogManager' not found in /Users/chrisbowen/projects/my-app/vendor/laravel/framework/src/Illuminate/Log/LogServiceProvider.php:17
Stack trace:
#0 /Users/chrisbowen/projects/my-app/vendor/laravel/framework/src/Illuminate/Container/Container.php(764): Illuminate\Log\LogServiceProvider->Illuminate\Log\{closure}(Object(Illuminate\Foundation\Application), Array)
#1 /Users/chrisbowen/projects/my-app/vendor/laravel/framework/src/Illuminate/Container/Container.php(646): Illuminate\Container\Container->build(Object(Closure))
#2 /Users/chrisbowen/projects/my-app/vendor/laravel/framework/src/Illuminate/Container/Container.php(601): Illuminate\Container\Container->resolve('log', Array)
#3 /Users/chrisbowen/projects/my-app/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(734): Illuminate\Container\Container->make('log', Array)
#4 /Users/chrisbowen/projects/my-app/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(106): Illuminate\Foundation\Appl in /Users/chrisbowen/projects/my-app/vendor/laravel/framework/src/Illuminate/Log/LogServiceProvider.php on line 17
Script @php artisan package:discover handling the post-autoload-dump event returned with error code 255
After a week of trying to get things working, it turned out to be Forge. Logged into server and pulled repository from there and it all worked.
Then after that i tried a different method where I pulled the repository in Forge but unchecked install composer dependancies. This pulled in the project repository. Then logged into the server and updated composer there, and that all worked. Now when i push to git it deploys successfully.