作者 竞泽

feat:boot pre env

... ... @@ -15,10 +15,12 @@ class ExceptionPushProvider extends ServiceProvider
*/
public function boot()
{
$configPath = __DIR__.'/../publish/exception.push.php';
$this->publishes([
$configPath => config_path('exception.push.php')
], 'lackoxygen-exception-push');
if ($this->app->runningInConsole()) {
$configPath = __DIR__.'/../publish/exception.push.php';
$this->publishes([
$configPath => config_path('exception.push.php')
], 'lackoxygen-exception-push');
}
}
... ...