DEV Community

Discussion on: Create a SPA with Laravel and Nuxt

Collapse
 
charlierydholm profile image
Charlie Rydholm

I've deployed an application built with laravel-nuxt. But after I've deployed it gives me alot of 404 error messages.

searching for files with random letters and numbers in it.

In the /_nuxt/ file. But my _nuxt file is no longer in the ./public folder, it's in a sibling folder to the root, named public_html. How can I fix this?

Collapse
 
skyrpex profile image
Cristian Pallarés

Did you change the configuration to change the public directory? The /_nuxt directory should be accessible publicly, so it should be at public/_nuxt, along with the index.php.

Collapse
 
charlierydholm profile image
Charlie Rydholm • Edited

Yeah but I've deployed it to shared hosting so I was needed to place everything in my public folder into public_html So my folder structure does look like this now

-app
---everything except public folder
-public_html
---everything that was in the the public folder

So i need to change the path, when I try to launch my website it gives me 404 errors on the wierd file names. looking for it in myHostAddress/_nuxt/
But instead it should look for it in myHostAddress/myName/public_html/_nuxt

This happened directly after i built it and launched even if I keep the same folder structure, it seeks in myHostAddress/_nuxt/ instead of myHostAddress/myName/MyApp/public

Been trying to solve it for days now..

Thread Thread
 
charlierydholm profile image
Charlie Rydholm

Do I need to build a new application, because this does not support shared hosting?