DEV Community

Discussion on: Deploying Laravel on shared Hosting

Collapse
 
glennmen profile image
Glenn Carremans

Thanks for your blog post, I have a couple of questions though 😉

How about the symbolic link to the storage directory? Most shared hosting providers don't allow the creation of symbolic links.
laravel.com/docs/5.8/structure#the...

And this seems to work perfectly for new installs, what would you suggest the flow would be for updates that require DB migration?

Collapse
 
ndiecodes profile image
Ndifreke Friday

A friend of mine recommended this package (github.com/kofoworola/route-commands); It let's you run artisan commands through web routes. Pretty neat 😇

Collapse
 
glennmen profile image
Glenn Carremans

Interesting! Thanks for sharing.

Collapse
 
ndiecodes profile image
Ndifreke Friday • Edited

You are right, not all shared hosting providers allow creation of symbolic links so I have mostly just uploaded my public files to public_html by changing root path in filesystem config.

For update on db migrations... You will probably need a sql script to alter your tables or alter it manually using phpmyadmin.