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
Percy
Percy16mo ago
Project ID: a3927d07-78ea-48dd-8f8b-bcde7ec70a63
BAG | AZIZ
BAG | AZIZ16mo ago
a3927d07-78ea-48dd-8f8b-bcde7ec70a63
root
root16mo ago
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.
BAG | AZIZ
BAG | AZIZ16mo ago
i dont have enoghe knowlage on laravale but thanks alot
root
root16mo ago
You should just be able to paste this into your project in a Dockerfile: https://github.com/lorisleiva/laravel-docker/blob/main/8.2/Dockerfile
GitHub
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.
BAG | AZIZ
BAG | AZIZ16mo ago
its clear now thanks alot @aleks
root
root16mo ago
np! Glad it works!