Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

mikail10000000's avatar

Update a laravel app on hosting

Hi, I use cloudways as hosting and deployed my lrv 4 app successfully, I use bitbucket and I git pulled my app to cloudways , but now I want to update my app , but when I git pull it again I got an error that there are files conflicting coz I made some changes , so I tried a deployment app - deployHQ but it also doesn't do the job , it simply ignores all the files instead of overwrite them , so how do I update laravel up on a remote server ? Please help that's my first deploy . Thank You

0 likes
3 replies
jlrdw's avatar

On hosting I just keep development up-to-date and FTP over.

zachleigh's avatar

If youre using git to deploy, first update the app on your development machine. Push your changes up to Bitbucket and then pull them into your server. You probably tried updating code on your server, which is always a bad idea. If youre running into trouble, you might want to consider a git hard reset which will force your server to use the code from your Bitbucket repo. Note that any changes made on your server will be lost. http://stackoverflow.com/questions/1125968/force-git-to-overwrite-local-files-on-pull

mikail10000000's avatar

Thank You, I've seen this article , I don't do any changes on my server, I just want to do a fast automated updates , something like in this article - http://sebduggan.com/blog/deploy-your-website-changes-using-git/

But I don't fully understand the part of pushing changes to an empty directory and than checkout it to the root directory. Is there any video tutorial on that subject ? I couldn't find anything in Google, maybe I'm not searching right

Please or to participate in this conversation.