PhpStorm takes a very long time to sync

Hi,

I work with Laravel a lot. When I sync my project with the server via "Deployment --> Sync witch Deployed to ***" it takes a very long time to do. But just because it get stuck in a specify folder "database/migrations" for around 5 minutes where only two files (about 2 KB each) exist.

Could somebody tell me whats happing there? Or is there a log file wheren I can lookup the problem?

3 comments
Comment actions Permalink

Hi there,

https://devnet.jetbrains.com/docs/DOC-1202

Enable extra logging and then check results in idea.log (Help | Show Log in...)

0
Comment actions Permalink

Hi there,

thank you very much, now I know the "problem".

[...]
2015-05-16 18:08:17,621 [ 411626]  DEBUG - ins.plugins.webDeployment.sftp - ls "database" 2015-05-16 18:08:17,861 [ 411866]  DEBUG - ins.plugins.webDeployment.sftp - 5 item(s): drwxr-xr-x    4 web2     client2      4096 May 13 17:07 . -rw-r--r--    1 web2     client2         9 May 13 17:07 .gitignore drwxr-xr-x    2 web2     client2      4096 May 13 17:07 seeds drwxr-xr-x    2 web2     client2      4096 May 15 11:33 migrations drwxr-xr-x   12 web2     client2      4096 May 14 22:14 .. 2015-05-16 18:08:17,861 [ 411866]  DEBUG - ins.plugins.webDeployment.sftp - ls "database/seeds" 2015-05-16 18:08:18,104 [ 412109]  DEBUG - ins.plugins.webDeployment.sftp - 4 item(s): -rw-r--r--    1 web2     client2         0 May 13 17:07 .gitkeep drwxr-xr-x    2 web2     client2      4096 May 13 17:07 . -rw-r--r--    1 web2     client2       268 May 13 17:07 DatabaseSeeder.php drwxr-xr-x    4 web2     client2      4096 May 13 17:07 .. 2015-05-16 18:08:18,104 [ 412109]  DEBUG - ins.plugins.webDeployment.sftp - ls "database/migrations" 2015-05-16 18:08:18,346 [ 412351]  DEBUG - ins.plugins.webDeployment.sftp - 5 item(s): -rw-r--r--    1 web2     client2         0 May 13 17:07 .gitkeep drwxr-xr-x    2 web2     client2      4096 May 15 11:33 . -rw-r--r--    1 web2     client2       704 May 15 10:22 2015_05_14_175813_create_users_table.php drwxr-xr-x    4 web2     client2      4096 May 13 17:07 .. -rw-r--r--    1 web2     client2       650 May 15 19:19 2015_05_15_092939_create_recipes_table.php 2015-05-16 18:08:18,346 [ 412351]  DEBUG - ins.plugins.webDeployment.sftp - get ".env" 2015-05-16 18:08:18,588 [ 412593]  DEBUG - ins.plugins.webDeployment.sftp - get ".env.example" 2015-05-16 18:08:18,832 [ 412837]  DEBUG - ins.plugins.webDeployment.sftp - get ".gitattributes" 2015-05-16 18:08:19,078 [ 413083]  DEBUG - ins.plugins.webDeployment.sftp - get ".gitignore" 2015-05-16 18:08:19,323 [ 413328]  DEBUG - ins.plugins.webDeployment.sftp - get "_ide_helper.php"
[...]


It first "crawls" the folders and after that it starts downloading them. And the last status showed is "database/migrations" it just doesn't tell me that it is downloading files for compare.

Maybe it should be a bit improved to show the status while downloading files.

0
Comment actions Permalink
It first "crawls" the folders and after that it starts downloading them.

It only "downloads" them if you set your Sync screen to compare files by "content". If you switch to comparing by "size & timestamp" it should generally be faster (not sure about your case though ... as you have said that your files are few KBs in size only).

Another suggestion: if you know for sure that some part of the site/project is not modified -- maybe it worth calling Sync for certain subfolders separately (this way you may omit unchanged folders/files). BTW -- you may do sync for few different subfolders at the same time.

0

Please sign in to leave a comment.