Giter Club home page Giter Club logo

Comments (6)

paliarush avatar paliarush commented on May 31, 2024

@LCIJJ Do you have this file /c/Projects/vagrant-magento/magento2ce/magento2ee/app/etc/aliases_to_classes_map.json ? This is indirect check to make sure that EE codebase is available, feel free to change this condition to use any other file that exists in your EE repo.

from magento2-vagrant-for-developers.

LCIJJ avatar LCIJJ commented on May 31, 2024

I switched the condition to a file that exists and now I get the following message:

C:\Projects\vagrant-magento>bash m-switch-to-ee
+ [[ -f /c/Projects/vagrant-magento/lib/php/php.exe ]]
+ php_executable=php
+ echo php
+ [[ ! -f /c/Projects/vagrant-magento/magento2ce/magento2ee/app/etc/vendor_path.php ]]
+ force_switch=0
+ getopts f flag
+ [[ -f /c/Projects/vagrant-magento/magento2ce/app/etc/vendor_path.php ]]
+ [[ 0 -eq 0 ]]
+ set +x
Already switched to EE. Use 'm-switch-to-ee -f' to switch anyway.

However, I login into the server and run the following:

vagrant@magento2:~$ echo ${MAGENTO_ROOT} /var/www/magento2ce

I was expecting the root to be /var/www/magento2ce/magento2ee. How do i switch to this folder?

from magento2-vagrant-for-developers.

paliarush avatar paliarush commented on May 31, 2024

Magento CE codebase should be in /var/www/magento2ce
Magento EE codebase should be in /var/www/magento2ce/magento2ee

Then try to run suggested command m-switch-to-ee -f

from magento2-vagrant-for-developers.

LCIJJ avatar LCIJJ commented on May 31, 2024

From "magento2ce" directory I downloaded and installed EE via composer:
composer create-project --repository-url=https://repo.magento.com/ magento/project-enterprise-edition magento2ee
After installation completed, I ran m-switch-to-ee -f command and the following error displays accessing Admin area via browser.
screen

from magento2-vagrant-for-developers.

paliarush avatar paliarush commented on May 31, 2024

The problem is that if Magento EE codebase is checked out via composer, it does not contain tools necessary for linking/unlinking so it is impossible to switch to EE and back.

Current vagrant project is created for developers and it is assumed that developers will work with git repositories.

If you just need to get composer-based EE installation running, then go to <vagrant_project_root> and execute composer create-project --repository-url=https://repo.magento.com/ magento/project-enterprise-edition magento2ce (note, that directory name should be magento2ce, not magento2ee).

from magento2-vagrant-for-developers.

LCIJJ avatar LCIJJ commented on May 31, 2024

This worked.

from magento2-vagrant-for-developers.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.