2017-07-31 95 views
0

当Codeship部署流明应用程序,我得到一个错误Laravel侦察,流明应用提供了[ErrorException]缺少参数1照亮的 Support 管理:: createDriver()

[ErrorException]                
    Missing argument 1 for Illuminate\Support\Manager::createDriver(), called i 
    n /home/rof/src/bitbucket.org/rakkle/rakkleapi/vendor/illuminate/support/Ma 
    nager.php on line 88 and defined 

当部署运行它配备与相关的雄辩模型的播种员类。

我没有在我的本地机器上看到这个错误。在bootstrap/app.php我是我使用的是自定义的侦察引擎,它可以完美运行在我的机器上已经添加

$app->instance('path.config', app()->basePath() . DIRECTORY_SEPARATOR . 'config'); 
$app->configure('scout'); 

$app->register(Laravel\Scout\ScoutServiceProvider::class); 
$app->register(ScoutEngines\Elasticsearch\ElasticsearchProvider::class); 

我已经到了一个地步,我知道它是laravel/scout包给出的问题,因为当我从提出问题的雄辩类中删除Searchable特征时,部署成功运行。

我想了解一些见解和解决这个问题的一些方向。

谢谢

+0

您是否在Codeship上专门运行此操作?我看到它是这样标记的,但我不确定我是否可以在这里帮忙。 –

+0

是的,我只是在codeship中得到这个问题,这就是为什么标签在问题上 –

+0

感谢澄清 - 我不确定这个问题。我会看看我们是否可以找出问题。 –

回答

0

我找到了解决这个问题的办法。

下面是完整的错误,我在我的机器

ErrorException: Missing argument 1 for Illuminate\Support\Manager::createDriver(), called in /var/www/vendor/illuminate/support/Manager.php on line 88 and defined 

    /var/www/vendor/illuminate/support/Manager.php:77 
    /var/www/vendor/illuminate/support/Manager.php:88 
    /var/www/vendor/illuminate/support/Manager.php:63 
    /var/www/vendor/laravel/scout/src/EngineManager.php:21 
    /var/www/vendor/laravel/scout/src/Searchable.php:203 
    /var/www/vendor/laravel/scout/src/Searchable.php:56 
    /var/www/vendor/laravel/scout/src/Searchable.php:35 
    /var/www/vendor/illuminate/support/Traits/Macroable.php:78 
    /var/www/vendor/laravel/scout/src/Searchable.php:112 
    /var/www/vendor/laravel/scout/src/ModelObserver.php:61 
    /var/www/vendor/illuminate/events/Dispatcher.php:367 
    /var/www/vendor/illuminate/events/Dispatcher.php:199 
    /var/www/vendor/illuminate/events/Dispatcher.php:172 
    /var/www/vendor/illuminate/database/Eloquent/Concerns/HasEvents.php:148 
    /var/www/vendor/illuminate/database/Eloquent/Model.php:670 
    /var/www/vendor/illuminate/database/Eloquent/Model.php:518 
    /var/www/vendor/illuminate/database/Eloquent/Builder.php:734 
    /var/www/vendor/illuminate/support/helpers.php:936 
    /var/www/vendor/illuminate/database/Eloquent/Builder.php:735 
    /var/www/vendor/illuminate/database/Eloquent/Model.php:1357 
    /var/www/vendor/illuminate/database/Eloquent/Model.php:1369 
    /var/www/tests/PetListingTest.php:150 
    /var/www/tests/PetListingTest.php:93 

上重复我已经忘了添加在codeship环境变量中是我使用搜索的SCOUT_DRIVER。我在.env文件中找到了它,因为它没有在我的机器上给我提出问题。

相关问题