Horizon: Add the force option to horizon:install

Created on 28 Feb 2019  路  3Comments  路  Source: laravel/horizon

While upgrading to v3.0 I was getting an error that Laravel Mix was unable to find the app.css file referenced in the horizon index.

I tried to republish the assets using php artisan horizon:install but since I had already published these files nothing was overwritten as this is the default behaviour for vendor:publish

I was able to correct the problem by checking the Console/InstallCommand.php file to see which tags to force update via vendor:publish.

php artisan vendor:publish --tag horizon-assets --force

Not sure how much customizing devs are doing in the UI of horizon but perhaps there should be a --force option for horizon:install which would solve this upgrading issue.

Most helpful comment

php artisan vendor:publish --tag=horizon-assets --force is the way to go.

All 3 comments

php artisan vendor:publish --tag=horizon-assets --force is the way to go.

you can also use the Horizon specific command php artisan horizon:assets, which calls exactly what @driesvints is suggesting.

I have this Artisan command as part of my deploy process.

Thanks, I was upgrading v2 to v3 and I found the same problem.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

elynnaie picture elynnaie  路  3Comments

meathanjay picture meathanjay  路  3Comments

okaufmann picture okaufmann  路  3Comments

Pustiu picture Pustiu  路  5Comments

dmitryuk picture dmitryuk  路  3Comments