working with remote server - how to sync the files?

I'd like to make a switch from Koding and am interested to know if the following setup would be possible:
I'm using a DigitalOcean to store my file and git it from there. Now I would like to be able to use 2 machines with PhpStorm to edit those files. I've added a new SFTP project and here's where the problem start. When I edit my files they're not being synced with remote ones. It's probably due to me missing something in my configurations, could you please help me figuring it out? Many thanks.

1 comment
Comment actions Permalink

Hi there,

First of all: https://confluence.jetbrains.com/display/PhpStorm/Deployments+in+PhpStorm

  • PhpStorm works with local copies of your project files. Which means: local source first -- remote is secondary.
  • It does not download anything from remote unless manually told to do so.
  • But it can do automatic upload on Save. Just make sure that the Deployment entry was marked as Default for this project.
  • If you need to sync local with remote (either way) -- use "right click | Deployment | Sync with deployed..."


P.S.
In recently released PhpStorm v9 you can edit files directly (not downloading them into actual project) -- http://blog.jetbrains.com/phpstorm/2015/04/remote-edit-in-phpstorm-9-eap/

0

Please sign in to leave a comment.