horizon-issue's People
horizon-issue's Issues
โ Solution
Thanks for the effort putting a repeatable repo together for me. That saved me a ton of time.
Your Problem
I believe everything stems from your preference to have Laravel installed within a sub directory. Usually we just have everything in the root directory (see Financial Freedom)
More explanation
You have two .env
files
/.env
/example-app/.env
You pass an .env
with Docker
horizon-issue/docker-compose.yml
Lines 22 to 25 in c4c7c8c
Why it doesn't work
Docker likely processes the command like this:
- Pass
.env
to root - Docker sets your environment variables to the "root" session
- As root, the
su webuser
is executed -- which runs a NEW session (not passing your variables) - Web user runs
php artisan horizon
with the/example-app/.env
file (which defaults to127.0.0.1
)
How to confirm
I was able to get this to work as soon as I updated the /example-app/.env
โ Suggested solution
- Do not put your Laravel app in a sub-directory. Instead, install it to the parent directory so you're only using one
.env
file
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.