PostInstall.php 849 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php
  2. namespace App\Console\Commands;
  3. use Illuminate\Console\Command;
  4. class PostInstall extends Command
  5. {
  6. /**
  7. * The name and signature of the console command.
  8. *
  9. * @var string
  10. */
  11. protected $signature = 'app:post-install';
  12. /**
  13. * The console command description.
  14. *
  15. * @var string
  16. */
  17. protected $description = 'Command description';
  18. /**
  19. * Execute the console command.
  20. */
  21. public function handle()
  22. {
  23. //
  24. $this->info('post install start');
  25. #openSearch
  26. $this->call('create:opensearch.index');
  27. #rabbitmq
  28. $this->call('app:create-queue');
  29. # system channel
  30. $this->call('init:system.channel');
  31. # system dictionary
  32. $this->call('init:system.dict');
  33. $this->info('post install done');
  34. }
  35. }