Managing files in a remote project

I am new to PHPStorm, and have setup a large project that uses source files on a remote server.

It took quite a while to download all of the source to my local Mac, but once it finished, I can edit local files and they sync back to the server automatically when I hit Cmd-S.  So far, so good.

For a variety of reasons, I want to manually handle the VCS with svn on the server on the command line.  What is the easiest/most efficient way to update my local files when there are updated files on the server?  Is there a way for PHPStorm to just grab updated files?  I would have expected "Synchronize" to do this, but it doesn't seem to see or look for changed files on the server.  The only way I have found so far is right-click on a project or directory and choose "Deployment --> Download from <project>" which downloads EVERYTHING in the project or folder.

There must be a better way, but what is it?

Thanks!

3 comments
Comment actions Permalink

Hi Joe,

"Synchronize" is to pickup any (somehow) undetected changes on local file system (e.g. you have added new file locally, edited existing local file in another editor etc) -- this action will force rescan of local project files.

What you are looking for is available at "Deployment | Sync with deployed version" (if you are right-clicking on local *folder*) or "Deployment | Sync with local" (if you are right-clicking on remote *folder* in Remote Host tab). Pretty much the same when right-clicking on single file will be called "Deployment | Compare with deployed/local".

Regarding "Deployment --> Download from <project>" -- check "Deployment | Options | Overwrite up-to-date files" -- if unchecked it will skip files with the same date and size on both local and remote host. But yes -- it will still do such comparison (timestamp & size) for every file. On another hand -- "Deployment | Sync .." can do even more job (time and bandwidth consuming) if selected to compare by content as in this case PhpStorm will definitely download every single file.

Maybe there is some another faster way around which involves VCS .. but I'm not familiar with that much ...

Related:

0
Comment actions Permalink

Hi Andriy,

Thanks for the info.  When I do "Deployment --> Sync with Deployed to..." I do indeed get a window showing me differences between my local files and the files on the server.

However, there are two problems:

1) There are a whole bunch (literally hundreds) of new local files shown that in fact are NOT new, but already exist on the server.  Why is PHPStorm showing these as new local files?  I have "Compare by" set to "Content", so this shouldn't be a problem with timestamps, should it?

2) I figured out that I can click on the "not equals" sign for a difference and make it into an arrow pointing from the server version to the local version.  Then when I click on the "Synchronize Selected" arrow button, the server version is copied to my local machine.  This is great, but the problem is, if I have LOTS of changes on the server, I have to manually click the "not equals" sign for each file?  Is there a way to mark a bunch of files all at once as needing to be downloaded from the server?

Thanks!

0
Comment actions Permalink

Hi Joe,

1) TBH -- I don't know. I've used this feature only few times when I had to sync just a few files in particular folder. This is much faster than syncing whole site with my primary tool (SyncBack Pro) as that tool works with profiles only, so if I need to sync one folder only I would need to create another profile.

2) AFAIK you have to do it for each single file individually.


Browse (vote/comment/etc) other tickets:

0

Please sign in to leave a comment.