Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

dabnad's avatar

Cant Install a working existing project

Hey guys, I just started Forge and I'm so frustrated... I can't successfully install my project.. Been using BitBucket with Growth Plan on Forge and I keep on getting "We were unable to install a project on your server (frosty-rain). " The last lines in the log are:

sebastian/global-state suggests installing ext-uopz (*)
phpunit/php-code-coverage suggests installing ext-xdebug (^2.6.0)
phpunit/phpunit suggests installing ext-xdebug (*)
phpunit/phpunit suggests installing phpunit/php-invoker (^2.0)
Generating optimized autoload files
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover

In DuskServiceProvider.php line 43:
                                           
  It is unsafe to run Dusk in production.  
                                           

Script @php artisan package:discover handling the post-autoload-dump event returned with error code 1

Do you have an idea what might cause this error? Thanks in advance, best regards.

0 likes
1 reply
andonovn's avatar

@dabnad Maybe you are somehow overseeing the error but it clearly says what's wrong: It is unsafe to run Dusk in production.

Are you excluding your dev dependencies on your production server? What I mean is you should run composer install --no-dev instead of just composer install.

Another reason for the problem to occur is if you don't have an .env file on the server you are installing the project. In Forge you can easily control the .env file by visiting Sites (from the top nav bar) -> the site you want to install -> Environment (from the left menu) -> Edit environment

Please or to participate in this conversation.