I have a project that has a local copy in my machine and a remote copy in a server, Server 1. Currently, I use Fabric to update the remote copy when I make changes to my local copy. To do this, a fab file is located in the root directory of the project (e.g.,
I have learned that a single fab file is enough for a project. Instead, it is best to have a single fab file that defines multiple functions that each make use of a different server. Fabric documentation offers a few ways to do this, depending on the specific needs of the user.
In my case, I modified my single fab file to look like this:
@hosts(server1) def server1_task(): ... @hosts(server2) def server2_task(): ...