F
F
FasikChan2015-12-09 02:27:48
rsync
FasikChan, 2015-12-09 02:27:48

How to hide code in a virtual machine?

Good day.
Initial data:
Host OSX 10.11
Guest Ubuntu 14.04
A dev-environment with a stack of technologies, including git, is deployed on the guest machine.
I use Sublime Text 3 for development.
Task:
When vagrant is disabled , the code remains in the folder from which it is rummaged into guest . Those. host is the source of the code. How to change this situation? It is necessary that the code source be vagrant , with approximately the following workflow:
1. Open the folder into which the code is blueprinted and observe it empty.
2. Run vagrant .
3. We check the folder - we see the code.
4. Changing the code to host blueprints it to guest so that the application server running on the guest machine picks up the changes.
5. Changing the code to guest blueprints it to host so that switching branches in the git on the guest machine changes the contents of the directory that the text editor looks into.
6. We extinguish vagrant - there is no code. I may not have fully understood, but it seems that rsync
can solve this problem , because. he is able to two-way file synchronization. Or I'm wrong?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question