vapor / vapor

💧 A server-side Swift HTTP web framework.
https://vapor.codes
MIT License
24.53k stars 1.44k forks source link

Deploying Vapor via CI - php artisan package:discover is failing #2297

Closed robmellett closed 4 years ago

robmellett commented 4 years ago

I have a strange issue when I'm running vapor deploy from my CI.

During the post composer build hooks

 "post-autoload-dump": [
      "Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
      "@php artisan package:discover"
    ]

One of my service providers is failing with the following issue.

   Solarium\Exception\HttpException  : Solr HTTP error: HTTP request failed, Connection timed out after 8001 milliseconds

Which is a connection problem.

I was just wondering if there's a way to safely disable this check somehow? It's CI, I'm only trying to run the vapor deploy command.

Any suggestions would be much appreciated.

Environment

Laravel Laravel Framework 6.18.5

Vapor Version: Laravel Vapor 1.4.7

robmellett commented 4 years ago

I just found out about the

composer install --no-scripts