Skip to content

Commit

Permalink
feat: start moving to config files for command configuration.
Browse files Browse the repository at this point in the history
  • Loading branch information
danmatthews authored Nov 12, 2024
1 parent 6d32f59 commit 9b24b92
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
23 changes: 23 additions & 0 deletions config/solo.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?php


return [

/**
* These commands will be automatically started when running `php artisan solo`
*/
'autostart_commands' => [
EnhancedTailCommand::make('Logs', 'tail -f -n 100 '.storage_path('logs/laravel.log')),
'Vite' => 'pnpm run dev',
// 'HTTP' => 'php artisan serve',
'About' => 'php artisan solo:about',
'Queue' => 'php artisan horizon:watch --without-tty',
],

/**
* These commands will appear in their panes, but you will have to elect to start them.
*/
'lazy_commands' => [
// ...
],
]
4 changes: 4 additions & 0 deletions src/Providers/SoloServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,9 @@ protected function publishProviders()
__DIR__ . '/../Stubs/SoloServiceProvider.stub' => App::path('Providers/SoloServiceProvider.php'),
], 'solo-provider');

$this->publishes([
__DIR__.'/../config/solo.php' => config_path('solo.php')
], 'solo-config');

}
}

0 comments on commit 9b24b92

Please sign in to comment.