Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hsndmr/laravel-horizon-watcher
This package automatically restarts Horizon whenever a PHP file in the local environment is changed
https://github.com/hsndmr/laravel-horizon-watcher
Last synced: about 1 month ago
JSON representation
This package automatically restarts Horizon whenever a PHP file in the local environment is changed
- Host: GitHub
- URL: https://github.com/hsndmr/laravel-horizon-watcher
- Owner: hsndmr
- License: mit
- Created: 2022-12-12T18:53:16.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2022-12-14T15:01:49.000Z (about 2 years ago)
- Last Synced: 2024-01-25T17:06:26.407Z (12 months ago)
- Language: TypeScript
- Size: 456 KB
- Stars: 18
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# Laravel Horizon Watcher
This package includes a command called laravel-horizon-watcher that
will start the Horizon service and automatically restart it whenever
a PHP file is created, modified, or deleted.
It can be used with any Laravel application without requiring any additional configuration.
This package is inspired by https://github.com/spatie/laravel-horizon-watcher## Installation
```bash
npm i -g laravel-horizon-watcher
```## Usage
Run this command in the root directory of your Laravel application:
```bash
laravel-horizon-watcher start
```## Custom Php Interpreter
If you want to use a custom php interpreter, you can use the `--php` option:
```bash
laravel-horizon-watcher start --php="/usr/bin/php7.4"
```## Custom Paths to Watch
If you want to watch a custom path, you can use the `--path` option:
```bash
laravel-horizon-watcher start --paths="app,config,.env"
```