Faizy
Faizy

Reputation: 1

How to upload laravel app to shared hosting

My question may be stupid but, the question is that my client want to see my work progress on daily basis, but i am developing app in local environment , so my question is that how can i work on local and reflect changes in server

Upvotes: 0

Views: 322

Answers (3)

Rezrazi
Rezrazi

Reputation: 895

Serving Laravel on shared hosting is really not recommended, or at least very complex. Laravel uses composer to install it's dependencies, a simple solution to that is to upload all the files manually, that might work yes, but there's the issue of the public path and file permissions. Changing the configuration of the public path can be done easily in Laravel, but server side can be complex/inaccessible. Same goes for permissions.


TL;DR
You can try to upload all you files to the shared hosting via FTP/File Manager. But some configuration regarding paths and permissions must be done.


Notable alternative
Using ngrok to share your local progress via a secure server behind a firewall
Learn more about ngrok here

Upvotes: 0

jeremykenedy
jeremykenedy

Reputation: 4275

You can try serving the pages with Laravel Valet.

You would need to allow access via your router to the port you are serving from or may be able to hit if you know your ip address.

Check out the docs:

https://laravel.com/docs/5.4/valet#serving-sites

Also, checkout the steps outlined here: https://scotch.io/tutorials/use-laravel-valet-for-a-super-quick-dev-server

Specifically, step 5 refers to your end goal.

Upvotes: 1

MohamedSabil83
MohamedSabil83

Reputation: 1559

simple. after making and test any changes, upload the changed file to the server.

B.S. after the first upload of laravel project files and folders, almost you need to upload is these folders app, resources and routes.

Upvotes: 0

Related Questions