Synchronization vs Deployment / Basic Settings?

New to phpStorm. Ran into an issue this morning where my (much older) local files were trying to synchronize (UPLOAD TO) our server. Which is a serious problem.

I work from two different office locations. Just want to configure so that whenever I open phpStorm, my local resources download any changes files from the server. Under the assumption that I may have been working from a different workstation, or one of our devs have uploaded changes that I am not readily aware of. When I save a file, it should push to the remote server. And when I click "Synchronize", I would like to upload/download all changed files to/from using the most recently modified versions on my local machine when I close out for the day.

How can I set this up?

0

Hi there,

You may use "Deployment | Synchronize..." at the start of the day to get your local code in such with remote.

https://confluence.jetbrains.com/display/PhpStorm/Sync+changes+and+automatic+upload+to+a+deployment+server+in+PhpStorm

You may also enable "Warn when uploading over newer file" and "Notify about remote changes" options (Deployment | Options)

 

P.S. Maybe just use some VCS and its' "merge" functionality .. and then on remote server you just do checkout (so remote will have latest version from VCS)

1

请先登录再写评论。