0

When writing code on a desktop pc as well as on a laptop or other computer, is there a general recommended strategy for being able to keep the same environments set up on both machines?

I use Git heavily for keeping the code sync'd, VsCode has settings sync, Pip and NPM etc for packages, but there are other aspects of the environment which have to stay in sync that aren't covered by the former.

E.g.

  • XAMPP configs setup with XDebug for PHP (I have set this up countless times on different PC's and its always a pain)

  • Third party binaries

  • Literally just any kind of folder or file I'd like

I am using Windows, but im sure there is some OS and tool agnostic strategy guys have figured out over the years to optimize this process.

Doc Brown
  • 218,378

1 Answers1

1

You're already using tools designed to ease the pain of distributed development, that would have been the general advice.

For other specific problems you will need to find a good compromise between automation and good documentation of manual processes. You could have a separate repository for this, or include it in your main repository.

Since initially setting up a development environment and keeping it up to date are somewhat different activities, you might want to structure your docs accordingly. Some kind of automatic prerequisite check might also be helpful to quickly determine where you may have forgotten something in your documentation or missed some step in applying it.

File sync tools as proposed in another answer can help with some kinds of assets but likely won't be able to handle prerequisite software installation well.