作者 竞泽

feat:boot pre env

@@ -15,10 +15,12 @@ class ExceptionPushProvider extends ServiceProvider @@ -15,10 +15,12 @@ class ExceptionPushProvider extends ServiceProvider
15 */ 15 */
16 public function boot() 16 public function boot()
17 { 17 {
18 - $configPath = __DIR__.'/../publish/exception.push.php';  
19 - $this->publishes([  
20 - $configPath => config_path('exception.push.php')  
21 - ], 'lackoxygen-exception-push'); 18 + if ($this->app->runningInConsole()) {
  19 + $configPath = __DIR__.'/../publish/exception.push.php';
  20 + $this->publishes([
  21 + $configPath => config_path('exception.push.php')
  22 + ], 'lackoxygen-exception-push');
  23 + }
22 } 24 }
23 25
24 26