Skip to content

Instantly share code, notes, and snippets.

@poloey
Created December 22, 2017 17:41
Show Gist options
  • Save poloey/88a6db8a0b5357d988ba0640eac61812 to your computer and use it in GitHub Desktop.
Save poloey/88a6db8a0b5357d988ba0640eac61812 to your computer and use it in GitHub Desktop.
deploy laravel in shared hosting
1. make a <folder> as sibling of public_html
2. upload all laravel file to these <folder> except public directory
3. upload public directory contnet to public_html directory
4. now to go to `public_html` and edit index.html. autoload and app path tell all laravel file you keep inside `<folder>` which actually siblings of public_html
5. update .env configuration file
6. create a symlink for storage
~~~php
symlink('/home/topuph43alictpro/<folder>/storage/app/public', '/home/topuph43alictpro/public_html/storage/app/public');
~~~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment