I can't seem to be able to update my magento2 ce using composer. I doesn't find any updates, the only one it found was 'fabpot'.
I thought this was the whole point of a composer setup, so why would I want to use the backend as explained in the documentation: http://devdocs.magento.com/guides/v2.0/comp-mgr/upgrader/upgrade-start.html
Or am I missing something?
Thanks in advance for any help.
EDIT:
I followed the official documentation to install Magento2 via composer, as described here: http://devdocs.magento.com/guides/v2.0/install-gde/prereq/integrator_install.html#integrator-first-composer-ce
The problem is that the composer.json file that is pulled using the command:
composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition <installation directory name>
defined magento under the required section of the .json:
"require": {
"magento/product-community-edition": "2.0.0",
"composer/composer": "@alpha",
"firegento/magesetup2": "dev-develop",
"splendid/de_de": "^0.0.1"
},
As you can see, version 2.0.0 is specified.
For the update to work, I had to manually change that line in the .json file as follows:
"magento/product-community-edition": "2.*",
Now running composer update
updated all modules from version 100.0.2 to 100.0.3.
Please note that this still throws an error exception because of the following:
[ErrorException]
Source /home/dev/git/mysite/vendor/magento/magento2-base/app/design/frontend/Magento does not exist
Now it seems quite a few essential are missing, for example the bin/magento file.
Anyone got any ideas how it is done correctly so it actually works?
Best Answer
Edit the composer.json file on root folder and change the version of magento in line 5:
and under "require"
Now run:
Then run:
And finally re-deploy the static files, which for me is this command:
That worked for me.