I am currently installing the Magento 2 modules via a
"require": {
"magento/product-community-edition": "*"
},
"repositories": [
{
"type": "composer",
"url": "http://packages.magento.com/"
}
],
in my composer.json - but this gets only the latest beta releases.
I try changing the version from "*" to "dev-develop" but this version is not found.
Is there a way to composer-install the latest development branch of Magento 2?
Edit
I gave this one a try:
{ "minimum-stability": "dev",
"require": {
"magento/magento2ce": "dev-develop"
},
"repositories": [
{
"type": "vcs",
"url": "https://github.com/magento/magento2.git"
},
{
"type": "composer",
"url": "http://packages.magento.com/"
}
]
}
But I end up without an app/ folder and it could not create app/etc/vendor_path.php. So I manually create app/etc before composer.phar install. composer install now succeeds but the pub/ folder is missing... Might be the wrong approach.
-
Can you figure anything out based on Composer's aliasing docs? I did ping Jordi, we'll see if he has anything to say.benmarks– benmarks2015年10月10日 14:25:16 +00:00Commented Oct 10, 2015 at 14:25
1 Answer 1
Currently Magento 2 does not have packages for developers branch, so you can not install it with the composer.
The reason for that, there is no mechanism in the compositor to say that the package in the development and it should not be cached. As result re deploy of packages will not has effects without cleanup of cache.
-
You are talking about
packages.magento.com? Would there be a way via GitHub?Alex– Alex2015年10月10日 14:51:24 +00:00Commented Oct 10, 2015 at 14:51 -
Yes, about
packages.magento.com. You can not use composer to obtain magento from github, but can just checkout with git and use.KAndy– KAndy2015年10月10日 15:31:19 +00:00Commented Oct 10, 2015 at 15:31 -
Sure, but then my project code would be mixed with Magento's code. What would it need to allow obtaining Magento from GitHub?Alex– Alex2015年10月10日 15:51:51 +00:00Commented Oct 10, 2015 at 15:51
-
You can make symlink of module/theme to magento instance to not mix code.KAndy– KAndy2015年10月10日 16:03:15 +00:00Commented Oct 10, 2015 at 16:03