Editing files on remote host

Hello,

I'm new to phpStorm and I want to use it to edit files on a remote server using FTP.

I succeeded in configuring the remote host connection and it downloaded all files from the server, but after editing and saving nothing changed on the server.

How to make phpStorm save the edited files remotely after saving the changes?

Thanks.

7 comments
Comment actions Permalink

Hi there,

1) PhpStorm does not allow you to edit files directly over (S)FTP -- you have to download it first.

2) Once you have edited and saved local file -- use "right click | Upload to ..." (or "right click | Deployment | Upload to...") to upload that file back to remote server.

3) You can tell PhpStorm to automatically upload modified files on save to remote location --- for that activate corresponding option in "Settings | Deployment | Options". For this to work that deployment server MUST be marked as Default for this project.

0
Comment actions Permalink

Thank you Andriy Bazanov !

Is there a way to split the window into 3 always visible window:

1. Project: top left
2. File transfer: bottom left
3. Main code editing window: right

Thanks.

0
Comment actions Permalink

Yes -- just drag 2nd tool window to the bottom part / desired side.

Here is an example (different tool windows though):

screen01.png

http://www.jetbrains.com/phpstorm/webhelp/manipulating-the-tool-windows.html

0
Comment actions Permalink

I tried every possible option but no way to achieve that. I can only resize the Project window left and right but not top and bottom. I made one window split and the other no but still nothing.

0
Comment actions Permalink

Screenshot please (whole IDE window, not just part of it) -- I cannot figure out exact problem you're having there (and your prohress so far) based from your description only.

P.S.
Did you checked the link I gave you? -- it should contain all info necessary to manipulate tool windows.

0
Comment actions Permalink

I finally solved this.

Now I'm using notepad++/filezilla alongside with phpStorm to edit a remote site. How to make phpStorm detect changes and reload/update its opened files that have been modified by notepad++ (the inverse works great as notepad++ detects changes made by phpStorm).

0
Comment actions Permalink

Why do you need PhpStorm then (if you are using another solution to edit your files)?

In any case: Manual sync ("Tools | Deployemtn | Sync with Deployed...") -- it will list all changed files.

You have to remember: this IDE is build around "local files first" idea -- everything which is remote is considered a copy of local files, hence there is no much of "detect remote changes" options available.

In any case #2: all possible options are located in the same place (that I gave you earlier): "Settings | Deployment | Options"

0

Please sign in to leave a comment.