nickantoniadis's avatar

Laravel App Deploy

Hello everyone,

Recently I've been struggling to make my Laravel (developed with Laravel Sail) app work for deployment or even make it at least public on my local network on another machine (tried on a Debian VM on my Unraid server) except my own laptop where I've been developing this app, I have tried many things and I couldn't understand why I can not access my app I thnk it has to do something with the frontend part and vite but I am not sure.

I tried building a docker-compose.yml file that will have traefik and watchtower so I won't have to maintain it but I the 404 page not found error was persistent so I don't know what else to do any more.

Thank in advance, any help will be much appreciated.

The project is located in the GitHub repo linked below there you can view the docker-compose.prod.yml and my Dockerfile and the vite.config.js or any other file you want to inspect. https://github.com/devblaze/ReservationProjectV2

0 likes
2 replies
puklipo's avatar

Generally, a local development server is meant to be used from the same PC.
It is not meant to be used from other PCs on the local network.
In the past, the development PC itself was used as a web server and accessed from the local network, but that is no longer the case.

The easiest way is to deploy to a public server, which can be accessed from other PCs.

sail share often does not work well.

nickantoniadis's avatar

Yeah I've been trying to dockerize with Dockerfile or deploy it with Coolify nothing works and I get 404 Page not found

Please or to participate in this conversation.