Skip to content

Commit

Permalink
Merge branch 'release/2.0.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
adrenth committed Feb 9, 2022
2 parents 8dc2707 + c653eb7 commit 325d99a
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 18 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [2.0.1] - 2022-02-09
### Changed
- Plugin documentation.
- Remove code comments.

## [2.0.0] - 2021-11-05
### Added
- PHP 7.4 and PHP 8.0 support.
Expand Down
20 changes: 5 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,9 @@ php artisan horizon:assets
```
'redis' => [
'driver' => env('QUEUE_DRIVER', 'redis'),
'connection' => env('QUEUE_CONNECTION', 'horizon'),
'queue' => env('QUEUE_DEFAULT', 'default'),
'driver' => 'redis',
'connection' => 'horizon', // References: databases.redis.horizon
'queue' => 'default',
'retry_after' => env('QUEUE_RETRY_AFTER', 90),
'block_for' => null,
Expand Down Expand Up @@ -139,7 +139,7 @@ php artisan horizon:assets
|
*/
'default' => env('QUEUE_DRIVER', 'redis'),
'default' => env('QUEUE_CONNECTION', 'redis'),
```

* `.env` should at least have the following `QUEUE_` and `HORIZON_` variables:
Expand All @@ -148,17 +148,13 @@ php artisan horizon:assets
#
# Queue
#
QUEUE_DRIVER = "redis"
QUEUE_CONNECTION = "horizon"
QUEUE_DEFAULT = "default"
QUEUE_CONNECTION = "redis"
QUEUE_RETRY_AFTER = 90
#
# Horizon
#
HORIZON_PREFIX = "myproject-local:"
HORIZON_FAST_TERMINATION = false
HORIZON_MEMORY_LIMIT = 64
HORIZON_REDIS_HOST = "127.0.0.1"
HORIZON_REDIS_PASSWORD = null
Expand Down Expand Up @@ -203,12 +199,6 @@ stdout_logfile=/var/log/supervisord/<queue-name>-queue.log
* * * * * /<path-to-php>/php /<myproject-directory>/artisan schedule:run > /dev/null
```

## Switching themes

> Each time you switch the default theme you need to re-publish the Horizon assets using the command: `php artisan vendor:publish --tag horizon-assets --force`
The assets will be stored in your current theme folder: `themes/mytheme/assets/horizon` folder.

## Creating Job classes

Follow the instructions at [Laravel 6.x generating job classes](https://laravel.com/docs/6.x/queues#generating-job-classes) on how to make Job classes.
Expand Down
5 changes: 3 additions & 2 deletions updates/version.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
1.0.0: "First version of Vdlp.Horizon"
2.0.0: "Removed the dependency of the October CMS module. Moved Horizon Assets. See CHANGELOG for more details."
v1.0.0: "First version of Vdlp.Horizon"
v2.0.0: "Removed the dependency of the October CMS module. Moved Horizon Assets. See CHANGELOG for more details."
v2.0.1: "Update plugin documentation"
2 changes: 1 addition & 1 deletion views/layout.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,6 @@
</script>

<script src="{!! $helper->getAssetsUrlPath('app.js') !!}"></script>
{{--<script src="{{asset(mix('app.js', 'vendor/horizon'))}}"></script>--}}

</body>
</html>

0 comments on commit 325d99a

Please sign in to comment.