Problem setting up project properly

I have been using Dreamweaver for years.  Its not the best suited product for PHP development so I decided to look elsewhere for another product.  I found PHPStorm and liked what I saw so I purchased it.  Now I am trying to use it for one a very large site.  The problem is the site is several gigabytes in size.  There are files with many different extensions and some files are very large and exist in the same folders with code.  So going thru the entire folder structure trying to identify folders to ignore and file types not to process will be very time consuming.  Is there not a way to just start the project with no files locally, point to the FTP and let me see the structure on the FTP server and not locally.  I don't want/need to have every single file on my local machine.  I only need the files I need to work on which can be in many different directories and I don't always know where they are when I start working.  Dreamweaver has a concept of local and remote files.  I decide how I want to work.  If I select remote, then I am seeing the folder structure as returned from FTP.  I navigate to the folder I want and when I open a file, its ftp'd down to me.  I save the changes and they are automatically uploaded.  This also allows another developer to have worked on the file a minute ago and uploaded it, then when i open that file, i am getting the file from the server, no need to sync.  From what I can see, PHPStorm doesn't allow for this type of working procedure.  Do I really have to download the entire site locally?

9 comments
Comment actions Permalink

Hi Mark,

Yes, you can do that. You just do not need to use any wizards but do everything manually:

  1. Create new empty project in PhpStorm (File | New Project...)
  2. Settings | Deployment -- create new entry for your FTP site, mark it as default.
  3. Tools | Deployment | Browse Remote Host (or just click on "Remote Host" tab if it is present already) -- choose your site in a list if not selected already (should be selected correct one by default)
  4. Browse trough your site and download only those files and folders that you actually need.
  5. Look at Settings | Deployment | Options  for automatic upload of locally changed files


P.S.
With automatic upload -- I suggest carefully checking what each option does (reading option title should be enough) before using it to prevent possible data loose on remote host because of your configuration.

0
Comment actions Permalink

On Step #4 you say "4. Browse trough your site and download only those files and folders that you actually need."  How do you do that?  I would assume I could just double click on the file in the Remote Host tab but that didn't work.  So how would I download the files?

0
Comment actions Permalink

Hi Mark,

When something does not work straight away (as you would expected in any particular place/moment) -- always try another very common (I would even say pretty "standard") way -- right click / context menu. In this particular case: right click | Download from here.

0
Comment actions Permalink

Right mouse clicking was the very first thing I tried.  The option to "download from here" isn't available.  Assuming I am doing it on the Remote Host tab, here are the options I have available to me.

screen.jpg

0
Comment actions Permalink

Also the menu items under Tools | Deployment are greyed out for "download from here".

screen.jpg

0
Comment actions Permalink

That's because you have not setup deployment entry properly.

From your description and screenshots I see that you have not set the values on 2nd tab (Mappings) yet -- you are missing mappings (local <--> remote). There will be 2 fields to fill -- a simple "/" (without quotes) should do the job in majority of cases.

0
Comment actions Permalink

I believe I have an understanding of how it should work and believe its working now.  I don't think this scenario is uncommon.  A video and/or wizard to make this more obvious would be nice.  

Thanks for your assistance.  

0
Comment actions Permalink

Mark, here are some videos that may be helpful:
http://tv.jetbrains.net/videocontent/working-with-web-projects-via-ftp
http://tv.jetbrains.net/videocontent/working-with-remote-project-in-phpstorm-and-webstorm

Meanwhile we'll think how we can improve user experience and make things more clear.

Kirill

PS Thanks Andriy!

0
Comment actions Permalink

Hi,

Something that I found odd, but managed to eventually get it working 'Right Click, Download' (Not just folders but also individual files on the remote server).

I had the two tabs set up correctly with connection & mappings. But I had to reverse the root path under connection with the deployment path under mappings.

Then I could right click and download files (not just folders).

I am not sure if it differs between deploying on windows/lunix servers.

hope this helps someone.

0

Please sign in to leave a comment.