-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added host property and made port optional
- Loading branch information
Xantios Krugor
authored and
Xantios Krugor
committed
Jul 3, 2021
1 parent
5f4a495
commit 259a412
Showing
3 changed files
with
52 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,46 @@ | ||
<?php | ||
|
||
return [ | ||
[ | ||
'name' => "Some long running thing", | ||
'retries' => 3, | ||
'autostart' => true | ||
], | ||
[ | ||
'name' => "Some process that keeps on exiting but needs to be running", | ||
'reties' => -1, | ||
'autostart' => true | ||
|
||
// Host to listen on (defaults to 127.0.0.1) | ||
# 'host' => '0.0.0.0', | ||
|
||
// Port for web interface to listen on (defaults to 8100) | ||
# 'port' => 8100, | ||
|
||
// Verbose logging | ||
'verbose' => true, | ||
|
||
// Tasks available | ||
'tasks' => [ | ||
[ | ||
'name' => "Run webpack", | ||
'retries' => 0, | ||
'autostart' => true, | ||
'cmd' => 'sleep 10' | ||
], | ||
[ | ||
'name' => "Some process that keeps on exiting but needs to be running", | ||
'retries' => -1, | ||
'autostart' => true, | ||
'cmd' => 'ping -t 3 8.8.8.8 ; sleep 5' | ||
], | ||
// Run multiple tasks back-to-back | ||
[ | ||
'name' => 'Jan-1', | ||
'after' => 'Jan-2', | ||
'autostart' => true, | ||
'cmd' => 'sleep 1', | ||
], | ||
[ | ||
'name' => 'Jan-2', | ||
'after' => 'Jan-3', | ||
'cmd' => 'sleep 1', | ||
], | ||
[ | ||
'name' => 'Jan-3', | ||
'after' => '', | ||
'cmd' => 'sleep 1', | ||
] | ||
] | ||
]; | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters