trungtnm / laravel-eureka
Eureka starter pack for Laravel
dev-master
2023-09-29 09:04 UTC
Requires
- php: ^8.1
- ext-dom: *
- ext-pcntl: *
- illuminate/console: ~10.0
- illuminate/http: ~10.0
- illuminate/routing: ~10.0
- illuminate/support: ~10.0
- piwvh/php-eureka: dev-master
Requires (Dev)
- phpunit/phpunit: ^9.5
This package is auto-updated.
Last update: 2024-10-29 11:22:13 UTC
README
- Add
wjezowski/laravel-eureka
to your composer.json as requirement - Add to your "providers" array in config/app.php this line:
Wjezowski\LaravelEureka\LaravelEurekaProvider::class
- Your environment should provide variables:
-
- EUREKA_SERVICE_URL - url used to doing heartbeat
-
- SERVICE_IP - app ip
-
- SERVICE_PORT - app port
- Run
php artisan eureka:run-heartbeat
in your app. I use supervisord for this. - That's all! Great job!