I use PhpStorm in a very similar setup, as your second approach (local copies, automatic synchronized changes) And, importantly, VCS support.
Ideal The easiest . In my experience, the easiest solution is to check / clone the VCS branch on your local computer and use your remote file system as an intermediate platform that remains unfamiliar with VCS; simple file system.
Real world; Required remote VCS If, however, (as in my case), you must have VCS in each system; perhaps your remote environment is the standard for your store or your own tools for checking / building your store are platform specific. Then a slightly different remote configuration is required, but nonetheless, processing your remote system in stages is still the best approach.
Example: Perforce - centralized VCS (client workspace) In my experience, workspace-based VCS systems (like Perforce) can be better handled by sharing the same client workspace between local and remote systems, which has The advantage of VCS file status changes that should be applied only once. The disadvantage is that file system changes on the remote system usually need to be handled manually. In my case, I manually chmod (or the OS equivalent) delete the files and wash my hands (the problem is solved). An alternative (double working gap) approach requires more moving parts, which I do not recommend.
Example: Git - Distributed VCS An easier approach is, of course, Git, which has great magic to detect file changes without directly accessing files from VCS. This makes life easier, as you can simply start with a common work branch and create, for example, two separate branches: "my-feature" and "my-feature-remote-proxy". Once you decide to combine your changes upstream, you do this (ideally) from your local environment. The remote proxy branch can be canceled or whatever. NOTE: in the case of Git, I always have two branches, because it is easy. And when you hard drive melts in funny fiery lighting, you have additional redundancy: |
Hope this helps.
Lance caraccioli
source share