4

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.

  • How you deployed/managed both Magento and VS source – Tamilvanan N Feb 3 at 17:35
  • @TamilvananN - Currently I have one repository for everything. I'm using ansible to clone the needed vue-storefront repositories e.g vue-storefront, vue-storefront-api and mage2vuestorefront. The ansible playbook of course also installs anything needed to run vs and magento. In staging environment I'm using systemd to restart the different vs parts using something like this sudo 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. – Cyclonecode Feb 3 at 17:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.