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 the 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.
I would be glad for any help/tips on how to best handle this kind of setup.
vue-storefront
,vue-storefront-api
andmage2vuestorefront
. The ansible playbook of course also installs anything needed to run vs and magento. In staging environment I'm usingsystemd
to restart the different vs parts using something like thissudo service vue-storefront restart
. This is a pretty wide area to discuss like this =) I'm using nginx to route different requests to magento and vue-storefront.