What is the Best Practice to deploy Laravel on Server?
I have dedicated server to deploy laravel. What I did was to install git on the server and local, I pushed the code to github then on the server I cloned it. Whenever I have changed on my local, I type manually on the server by using nano. This required a lot of work and time consuming. Is there any good way to do it?I know there is envoyer, but it is not free. Thanks
Yeah, I have the same issue and am also looking for an easier alternative, but I do not think there is, as even with Heroku (and my express apps), I have to clone the repository after changes.
Apologies, maybe someone else can give you a better solution.
Edit: You can also use WinSCP to just upload the one file, that you have changed. Not sure if this is the solution you are looking for...
What you are looking for are git hooks. I don't know much about server setup myself but some research into git hooks should set you up. A quick Google search yielded this: