Laravel+ Railway deployment
Hello everyone, I need some help regarding a deployment issue I'm facing with my Laravel project on Railway.
I’m currently working on a small Laravel training project, and I deployed it to Railway using a simple .env file I only filled the necessary environment variables like the app name, environment, debug mode, app URL, and database credentials for SQLite.
When the deployment starts, the logs show a lot of warnings from Laravel about missing environment variables,
The thing is, I’m not even using these services in my project no Redis, SQS, AWS, or special mail drivers — so I thought it wouldn’t require setting them.
But despite the deployment finishing, when I open the app URL I’m getting a 500 Internal Server Error.
So my questions are:
Do I have to define all these environment variables even if I don’t use them?
Is there a way to prevent Laravel from showing these warnings?
Are there any basic environment variables I must set for Railway that I might have missed?
I’d appreciate any advice or guidance from anyone who faced this before! Thanks in advance!
1 Reply
Probably got a config file looking for them