#CSS not working in production
36 messages · Page 1 of 1 (latest)
So, what is happening? Is your CSS file loading? Is it empty? Is it a 404?
how can i check where it is?
Look at your browser's devtools
idk if this is where u want me to look but
i guess this is the issue?
i think its because there isnt an .env file
wait there is
i just couldnt see it on the dashboard
is the app_url correct?
Laravel detects the Vite dev server is running, which is either because it's running or you did something like copying your local files to a server while the Vite server is running. So, check if the /public/hot file exists
how can i check this?
its meant to be in production
idk if im meant to use the dev server, i've built the css files to a file
No, you shouldn't use the Vite dev server on a production environment
yeah, i understand that
but im meant to be in prod mode
so shouldnt it be accessing the built css?
I just explained..
Idk, I don't use Plesk. Why did you start the dev server on your production server in the first place?
i dont know 😭 i didnt mean to idk if its still running now
also, public/hot doesnt exisst
Guess it is then? Then I guess use htop or something to figure out which processes are running, or even check if something is running internally on port 5175, if it is kill the process
how can i check this? via ssh or something?
Idk, I'm giving you lots of things to search for. No clue what Plesk is, just the what you're showing is indicative of the dev server running. Laravel would only try to load from the dev server it's running, and it detects this through the hot file, not through env or config.
the hot file doesnt exist though
Ok guess you're out of luck then 🤷♂️
great thanks
https://github.com/laravel/framework/blob/10.x/src/Illuminate/Foundation/Vite.php#L284
That's quite literally the code though. If the hot file exists, load @vite/client, otherwise it doesn't. And your error shows it's loading the Vite client 🤷♂️
yo so turns out i was looking for a hot directory and not file and the hot file was right underneath it so