Skip to content

herpaderpaldent/horizon-issue

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Demo for Horizon Issue

  1. create a laravel project
# This is taken from https://serversideup.net/open-source/spin/examples/laravel
docker run --rm -e "S6_LOGGING=1" -v $(pwd):/var/www/html serversideup/php:8.1-fpm composer create-project laravel/laravel example-app
  1. install horizon
# cd into example app folder
cd example-app
# require horizon
composer require laravel/horizon
# install horizon
php artisan horizon:install
  1. Spin 😉 the containers up
docker-compose up -d --build

Now the issue

The issue really is: if you bash into the container everything works as expected. But if you run horizon as command as you suggest in your tweet/doc etc horizon will fail.

  1. Prove that horizon works within the container
docker-compose exec php bash
# Run horizon
php artisan horizon

you should see the following img.png Q.E.D

  1. Prove that the container failed

If you look into logs you are going to see that the horizon container shut down with a failure

docker-compose logs horizon

Among the lines you should see the connection error img_1.png

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published