laravel server port
my laravel server is working on 8000 port by defult and railway was giveing random port everytime how to fix that ?
https://restaurant-php-production.up.railway.app/
8 Replies
Project ID:
a3927d07-78ea-48dd-8f8b-bcde7ec70a63
You might find these helpful:
- Why did this error occur? The app itself works, but it's annoying me
- Listening on PORT but application not serving
- Help trying to visualize my Symfony app
⚠️ experimental feature
a3927d07-78ea-48dd-8f8b-bcde7ec70a63
This is not a bug; this is expected behaviour.
The 500 error is a bug, though.
For Laravel, I'd honestly recommend using a Dockerfile; a quick google search found https://github.com/lorisleiva/laravel-docker, which should work.
i dont have enoghe knowlage on laravale but thanks alot
You should just be able to paste this into your project in a
Dockerfile
: https://github.com/lorisleiva/laravel-docker/blob/main/8.2/DockerfileGitHub
laravel-docker/Dockerfile at main · lorisleiva/laravel-docker
🐳 Generic docker image for Laravel Applications. Contribute to lorisleiva/laravel-docker development by creating an account on GitHub.
its clear now
thanks alot @aleks
np! Glad it works!