4 Replies Last post: Feb 21, 2012 11:15 PM by Keith Davis  
Gonzo89 Newbie 2 posts since
Feb 21, 2012
Currently Being Moderated

Feb 21, 2012 2:35 PM

Synchronize All Remote File with local ones

Hi there,

 

i'm trying out the free trial of phpStorm and I'm realy impressed and overwhelmed by the functionallity.

But I have problem and i can't find a proper solution for me, maybe I'm, blind.

 

I created a Project with the "file->New Project from existing files" wizzard and choose:

"Web server is on remote host, files are accessible via FTP/SFTP".

 

After finish the Project Configuration phpStorm loads all the project files via sftp and i started to work,

everything fine.

 

2 Days later, i changed a few files directly on the remote server, using a different Editor on a different PC.

 

Now i came back to phpStorm and wanted to synchronize alle the remote files with the local ones,

but can't find any solution.

 

I figured out, that i can mark a Remote Directory and then chose "Download from here" or "Sync with local".

But i don't want to do this for every directoy.

 

Is there a function that do this "Sync with local" for the whole Project?

 

 

I hope you can understand my question, despite my bad english.

 

Thank you

 

 

Best Regards

 

Gonzo

Elena Shaverdova JetBrains 192 posts since
Oct 13, 2010
Currently Being Moderated
Feb 21, 2012 3:20 PM in response to: Gonzo89
Re: Synchronize All Remote File with local ones

Hi!

 

When you create project from existing files, your project root gets mapped to some remote directory, which was downloaded into new project. So Download and Sync (you'll see changes there and can download selected) should be available on root element in Project View (in Deployment submenu), and those actions are recursive. If you created multiple mappings, things are a little bit more complicated. Mapped directories have green background in Remote Host tree, so, you'll have to download from each green's subgraph root. Also, if you use PhpStorm 4.0, you can Sync multiple directories at once.

 

Best regards,

Elena

Elena Shaverdova JetBrains 192 posts since
Oct 13, 2010
Currently Being Moderated
Feb 21, 2012 5:20 PM in response to: Gonzo89
Re: Synchronize All Remote File with local ones

Yes, or mark the Project Root in the ProjectVier, and in context menu Deployment | Sync with...

Well, anything is possible. Currently the only solution i can offer is to minimize number of synced directories, and check them one-by-one. Now files are compared by default by content, and there is no option to change it to faster by size or by timestamp comparison before default comparison is finished. It definitely would be fixed.

If the only problem is not to loose or override those changes, set in Tools | Deployment | Options Warn when uploading over newer file: Compare content, and enable Notify about remote changes. You will be notified about remote change when open corresponding file locally, and merge would be suggested when upload over the changed file.

Keith Davis Apprentice 676 posts since
Aug 23, 2010
Currently Being Moderated
Feb 21, 2012 11:15 PM in response to: Gonzo89
Re: Synchronize All Remote File with local ones

Yes, this feature is way too slow to be used on large projects.

More Like This

  • Retrieving data ...