#Deployement on shared hosting service

10 messages · Page 1 of 1 (latest)

earnest basalt
#

I followed a tutorial about deployment on a shared hosting service.
The tutorial spoke about using 2 separate folders, one with all the logic, and the other one with the things from the public folder.

This went all well, but how can I save uploaded images in that public folder?

The entire application is in the hirehero files, the public folder is now the app.hirehero.eu file.

What are the possibilities?

umbral sparrow
#

Before others suggest deployment pipelines and a VPS or something similar; hosting Laravel on a shared server is possible, but comes with a handful of workarounds and issues.

What errors are you getting currently if any? Also, is there any way you can get SSH access (many shared providers offer this if you request it).

earnest basalt
#

I just use it because it is provided by my school. I am not really getting any errors, but whenever I try to use the input field of type file and try to save someting, it is not getting saved in the public folder in the app.hirehero.eu, but it created a new public folder in my hireherofiles, and then saved it there.

#

And I do have access to ssh

near violet
#

Your webserver (nginx, apache, etc) should serve from the laravel public directory... Once you do that, you dont need to juggle anything around... Note that the main laravel project directory should NOT be the home_dir/doc_root for the webserver

earnest basalt
near violet
#

Hard to say, I dont know what your school has given you for shared hosting, how thats setup, if you have access to modify configs, etc

earnest basalt
#

Or are there maybe some cloud storage api's I could use?

umbral sparrow
earnest basalt