Skip to content

RC deploy via composer #2329

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
luckyraul opened this issue Nov 11, 2015 · 5 comments
Closed

RC deploy via composer #2329

luckyraul opened this issue Nov 11, 2015 · 5 comments

Comments

@luckyraul
Copy link

With this config Magento2 core modules do not copy to their folders

"require": {
        "magento/product-community-edition": "2.0.0-rc",
        "magento/magento-composer-installer": "*",
        "php": "~5.5.0|~5.6.0|~7.0.0"
    },
    "extra": {
        "magento-root-dir": "public/",
        "magento-force": "override"
    },
    "minimum-stability": "alpha",
    "prefer-stable": true,
    "autoload": {
        "psr-4": {
            "Magento\\Framework\\": "public/lib/internal/Magento/Framework/",
            "Magento\\Setup\\": "public/setup/src/Magento/Setup/"
        }
    }

same config worked well with beta6

@luckyraul luckyraul changed the title RC deploy RC deploy via composer Nov 11, 2015
@mazhalai
Copy link
Contributor

@luckyraul we have changed how magento is deployed via composer. Now modules will not be marshaled anymore and will work fine from any location, as long as a component is properly registered. Please see this documentation for more details. Also, for better understanding of why this change was made, please read through all comments in this thread.

@luckyraul
Copy link
Author

It's okay to load from vendor, but now I get this error after clean install

"Cannot read contents from file "/var/www/shop.stagingxxx.net/releases/7/public/var/www/shop.stagingxxx.net/releases/7/vendor/magento/
module-ui/view/base/ui_component/etc/definition.xml" 
Warning!file_get_contents(/var/www/shop.stagingxxx.net/releases/7/public/var/www/shop.stagingxxx
.net/releases/7/vendor/magento/module-ui/view/base/ui_component/etc/definition.xml): failed to open stream: No such file or directory"

@luckyraul
Copy link
Author

It's a problem of getting the relative path from the vendor folder inside Magento\Framework\Filesystem\Driver\File

@mazhalai
Copy link
Contributor

@luckyraul there is an issue with relative paths, please see this comment for more details. Workaround is to ensure

There is a known restriction that files currently must be under Magento base directory.

@luckyraul
Copy link
Author

That's it, thanks.

magento-engcom-team pushed a commit that referenced this issue Apr 4, 2018
Fixed issues:
  - MAGETWO-88028 Table is full errors on same modify profile
  - MAGETWO-89417 [2.3.x][Functional-Tests] - AdminSwitchWYSIWYGOptionsCest fails on 2.3-develop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants