Editing One File on Remote Host - Staging Site

Hi, I am new to this type of environment, so forgive me. How do i open phpstorm and use it to edit one file on a remote server. I generally make changes in a staging environment and then push the changes to the live. I can't figure out how to open one file in phpstorm, edit and save! Sorry... This is probably something very basic. 

0

Hi there,

If you need to just open and edit some random file (be it local or remote) then in general it might be better to use some lightweight text editor for such quick edits.

This IDE shows its power when working with actual projects when all files are local (easily and quickly accessible at any point in time). Sure, you can do remote edits (file downloaded from remote host, placed in temp location and shown for you) .. but you will miss a lot of functionality (as IDE is simply unable to scan other files to offer project-specific code completion and stuff like that).

In any case (for random files):

  • If you want to just open and edit some local file -- you can use "Open" from the Welcome screen and point to such file. It will be opened in a some kind of temp project (as this IDE works with projects)
  • AFAIK you cannot do the same with remote file(projectless edit) ... as using Deployment operations (upload/download/sync) requires creating an Deployment entry (FTP/SFTP/FTPS/etc) ... which is actually a project level config entity.
  • But surely -- you can create some special temp project anywhere, configure Deployment entry so you can use Browse Remote Host and then use Remote Edit on a desired file. You can then re-use this project for other sites etc.

If you are OK with creating dedicated project for that site -- just do that, configure Deployment entry and then use Remote Edit.

Some links:

0

请先登录再写评论。