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
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
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