Right now I have a magento 2 installation which is run through a customized vagrant box, and I would like to use VS for the frontend, but I’m a little confused on how to best handle deployment to different environments and how to structure the git repository in this case? I’m thinking about creating two separate repositories one for Vue Storefront and one for magento and then run the VS part directly from my local computer, while the magento 2 application will be run from the vagrant box. I am using composer to install the magento 2 part. Does this seem to be a valid setup or is there a better and more standard approach? One other thing that is confusing is the fact that the recommendation for VS is not to run Elastic search and Redis through docker containers in a production environment, but instead install everything locally on the server. It seems like it could be hard to create a valid deployment for local/stage and production machines.
Would be glad for any help/tips on how to best handle this kind of setup.