Currently the code base for the project I am working on is remotely on a company server. and it has to stay like that. also the remote
git repository cannot be made public.
My current setup is:
- Connect to the
sshfsto mount a copy of the code
- start working on the code
- when I am done:
sshto the remote server and run
The problem with this, is that the VPN falls from time to time, so My
sshfs mounth breaks, and my IDE freezes. what I do is to manually reconnect the VPN, then run
sshfs again, and get back to work.
But it gets annoying as the
VPN falls more often.
So I wonder if there are any settings for
sshfs for some sort of cache, that would allow me to work, and only sync the changes when the VPN gets back.
That may make no sense, since if the remote driver is not available there is nothing to write to. So what about a different setup that uses some
watch kind of thing and uses
rsync to move changes in a bidirectional way (either when I save a file, or when I do
git pull )
I can't just git clone, because I can't reproduce the entire environment to work 'locally' (DB and stuff)
the code has to be in their servers, in order for me to test/see my work I have to access a URL, that is my sandbox. I can't git push each time I want to see my changes.