PhpStorm and projects with remote files, keeping environments mirrored - phpstorm

I'm using PhpStorm for a while now but I'm a bit confused for the right way to work on projects with remote files.
At the moment I've created a project (FTP) and download everything from the deployment server. When I save a file it gets uploaded automatically but there are situations where I'm working from another device using a different approach to modify files.
At this moment I'm redownloading the entire deployment server, but this seems like an overkill. Is there a method like 'sync' to just download/modify the remote changed files? I know there is an item in the context menu 'Synchronize "Project name"', but this doesn't seem to do anything?

Related

Pulling remote changes from a development server in PhpStorm

For most projects, I work in a local Dockerized setup, but once in awhile, I have to work on a project that lives on a remote development server. Using tools > deployment > configuration, I have set up sftp access to the server.
Now I can't seem to find a way to download the relevant files from that server.
I could swear that there used to be a menu option under Tools > Deployment to do this. Something like pull files from server.
Did this option go away with a recent update? Is there another way to do this from within the IDE (preferably without pushing to version control every time I want to test a change)?
===
Edit: I am using PhpStorm 2019.2. The contents of the Deployment submenu are:
Configuration
Options
Automatic Upload
Browse Remote Host
I have tested the sftp connection from within the configuration screen in PhpStorm, and it is working. Browse Remote Host also appears to work.

SFTP Downloading While Uploading

The link below is a very similar question to this but I am wondering if things have changed in a couple of years / what's actually happening with my situation.
As a test, I upload a 425MB file to a 3rd party vendor's SFTP server (which can be seen immediately on the server) and I have an SSIS package start downloading that file right away. The process takes about 20 minutes but at the end I have downloaded a full file that looks exactly the same as the uploaded file.
Is it possible the SFTP server can "handle" this and I can trust this to work properly (no partial reads or anything) if it were to happen in production or do I still need to do workarounds suggested in the link below?
Knowing nothing about SFTP servers I would think some sort of SFTP software would manage this for you without needing workarounds..
SFTP file uploading and downloading at same time
Thank you!
This sounds like you are attempting to avoid a potential race condition. A simple solution to this is to upload the file to an Uploading directory. Once the file transfer is complete, move the file to a Source or Archive folder (name it whatever you want). Then build all download processes to only look in the Source or Archive folder.

How to only download specific files from remote server instead of whole project?

I created a new project from remote sources and entered my servers data. PhpStorm instantly began to download the whole Magento project, even though I only need specific files for development, e.g. I don't need all the images or cache folders for my purpose. Now it takes 4-5 hours to download the whole project.
In NetBeans you can choose which folders you want to download to your machine, is this also possible in PhpStorm?
Yes it's possible.
You should have marked such unwanted folders as "Excluded from Download" --
See official help page for appropriate wizard step.
Other ways of creating a project:
Just create empty local project and then configure the rest manually (deployment etc); once done use "Browse Remote Host" and download folders/files you need.
Another way -- download all needed files locally first using you preferred program (e.g. FileZilla) and then just point to the project root folder in "Open" dialog -- IDE will create new project from those files.

PhpStorm not synchronizing new local files

I have a large project with multiple repositories. Whenever I create a new file in one of my repositories with a build tool like gulp or webpack I don't see any changes show up unless I manually right click my root directory and click synchronize selected files.
It does not matter how long I wait it only works if I do this. Is there something I could tweak or change to possible effect this and maybe help me get rid of this problem?
I am syncing with a virtual machine but edits or lightning fast and I have caching turned off.

PhpStorm configure to work remotely

Hi is there a way for PhpStorm to work directly on a remote server? No local files. Because as of the moment PhpStorm has local files wherein it just automatically uploads all files during save on remote.
My problem is if someone changes something remotely I need to manually download it first before seeing the changes.
It's not possible to fully operate on a remote server. Phpstorm need a local project, which contain the .idea folder. You can edit remote files without downloading them to the project folder. But in this case the entire list of features is not available.
For you can be useful the following settings:
tools->Deployment->Options:
warn when uploading over newer file
Notify about remote changes