Скачивание сайта (Downloading Site)

Проблема такая: при создании проекта на этапе скачивания сайта на компьютер я нажал отмена т.к. мой сайт весит 9 гигов. Теперь в мой проект входят только папки которые успели скачаться. Что сделать что бы появились остальные? Нажимал синхронизировать, но не помогло. Получить структуру файлов сайта что бы отметить что нужно а что не нужно загружать то же не получается.

И вообще я не понимаю смысла скачивать весь сайт. Есть ли возможность вообще этого не делать?


--------------------------

The problem is this: when creating a project at the stage of downloading site on the computer, I clicked cancel because my site weighs 9 gigs. Now in my project folder that contains only managed to download. What can I do that would have appeared else? Pressed sync, but did not help. Get   the structure file of the site that would like to note that you need   and what does not need to download the same does not work.


And I do not even understand the meaning of downloading the entire site. Is there any possibility at all not to do this?

4 comments
Comment actions Permalink

Hi there,

Due to the reasons you already have mentioned (inability to select only required folders), If I need to create some more or less complex project from the remote files (FTP) I would do it in this way:
1) Delete existing project (or just completely ignore it) and create brand new empty Local project
2) Do whatever initial configuration is required
3) Go to File | Settings | Deployment and create and configure deployment entry (I guess you are using FTP), mark it as Default
4) Go to Tools | Deployment | Browse Remote Host, select the folders/files you want to download, right click and choose "Download from here"
5) Do all other configuration (if required)

The other way -- is not to use PhpStorm for downloading the project -- use your favourite FTP client to transfer all required files locally, and then use "File | Open Directory..." (or maybe even "New Project from Existing Files...") followed by configuration step. Just make sure that FTP client will preserve the file dates (copy date-time from remote file), otherwise these files will be treated as modified/newer when you decide to sync your project with remote.

Теперь в мой проект входят только папки которые успели скачаться. Что сделать что бы появились остальные?

See #4 above -- "Tools | Deployment | Browse Remote Host"

Нажимал синхронизировать, но не помогло.

Synchronize will re-read local files from the disk only (to pick up any new or modified local files that were not automatically detected as such). Synchronize does not sync files/folders with Remote Host.

И вообще я не понимаю смысла скачивать весь сайт. Есть ли возможность вообще этого не делать?

You need a local copy of your files (at least the code part -- php, js, css...) in order for autocomplete/code analysis/error checking etc to work.

0
Comment actions Permalink

Спасибо, это логично, я так и пытался сделать, но.....



Attachment(s):
2.PNG
1.PNG
0
Comment actions Permalink
"You need a local copy of your files (at least the code part -- php, js,  css...) in order for autocomplete/code analysis/error checking etc to  work."

Why, then Zend Studio, can do it without downloading?

0
Comment actions Permalink

Check your Deployment configuration -- it sounds like you have not setup the local path properly (the local path is ouside of the of the current project) -- double check this moment.

"You need a local copy of your files (at least the code part -- php, js,  css...) in order for autocomplete/code analysis/error checking etc to  work."

Why, then Zend Studio, can do it without downloading?

Ah... so in Zend Studio you can work with one single file and it automatically knows which Framework you are using (even if it is my own), which classes/functions I have (even if I have hundreds of them in big project), all css ids/classes I'm using etc (since it does not require any downloading...).

Now seriously:
1) Every IDE (or alike) needs other project files in order to determine which classes you have, what your functions'/methods' signatures are (list and types of parameters), which variables/constants do you use etc. Maybe Zend Studio can collect this info once and then use the cache -- this may explain such behavior somehow. But then, what if you have changed your code (changed number and order of parameters, renamed functions/classes etc) from another place (or it has been done by another person) without letting your copy of Zend Studio know about it -- how it will know that your local cache is out of date, will it still offer wrong/out-of-date signatures ? (I have used Zend Studio for a month or so few years back (v5.x I believe, not sure) and it was local development).
2) PhpStorm is meant to use for full scale project development (when you have you dull copy of the project locally and then submit changes to teh VCS and/or dev/test server). It does not suit well for project support tasks (when you may have tens if not hundreds of projects and you just making small changes here and there from time to time).
3) It is PhpStorm (based on IDEA platform) and that is how all other IDEs from JB currently work. You may call it "limitation of the IDEA platform" if you wish. But that is the approach they have (which I personally do like a lot) -- develop locally, use full power of IDE (code analysis (unused variables/dead code/etc)/missing references check/missing files checks/external classes code completion/etc) to make as little mistakes as possible .. and then deploy/submit your code elsewhere.

0

Please sign in to leave a comment.