In my current work setup I write the code on my own computer and run it on AWS machine. After every change I do, I run rsync
to copy my changes to the machine and run the code there.
I work on VS Code and I need the machine to be stateless - more on that later. I try to automate the manual rsync
work. I see VS Code has a built in utility - https://code.visualstudio.com/docs/remote/ssh-tutorial but it looks like it assumes the code is on the remote machine. Which is not my case.
I see that the plugin "save and run" can call rsync
for me on every save. Which is better than my current setup but I wonder if there is any other solution.
More technical details - at the start on every day I start a machine from a pool of machines. I would probably not get the same machine on the other day, thats why the machines are stateless from my perspective. Yet, during the day, I can assume there is a state and I only need to sync the changes.