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
Percy2y ago
Project ID: a3927d07-78ea-48dd-8f8b-bcde7ec70a63
BAG | AZIZ
BAG | AZIZOP2y ago
a3927d07-78ea-48dd-8f8b-bcde7ec70a63
root
root2y 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 | AZIZOP2y ago
i dont have enoghe knowlage on laravale but thanks alot
root
root2y 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 | AZIZOP2y ago
its clear now thanks alot @aleks
root
root2y ago
np! Glad it works!
Want results from more Discord servers?
Add your server