0

We are getting ready to upgrade from v2.2.2 to v2.2.4. Due to our deployment process, I need to push the composer.json so it can be upgraded properly via the git rather than doing it in the backend.

But I just noticed that a second version number shows up in the top of the composer.json file. It currently shows our original version (2.2.1). Should this one be left alone to show the 'original' or should it be updated also?

{
 "name": "magento/project-community-edition",
 "description": "eCommerce Platform for Growth (Community Edition)",
 "type": "project",
 "version": "2.2.1",
 "license": [
 "OSL-3.0",
 "AFL-3.0"
 ],
 "require": {
 "magento/product-community-edition": "2.2.2",
 "composer/composer": "@alpha",
[.....]
Taran
5663 silver badges13 bronze badges
asked Aug 30, 2018 at 17:01
4
  • You should mark the answer which helped you accepted. Commented Aug 30, 2018 at 22:59
  • but I figured out the answer by re-running an upgrade on another instance. It wasn't an answer here that gave me the answer. Commented Aug 31, 2018 at 20:30
  • Marking answer accepted helps other users which come looking for same issues, so either you can post your own answer and mark it as accepted or accept the answer which will solve the issue as accepted Commented Aug 31, 2018 at 20:33
  • and I already added a comment that states what I did to solve the problem (which was different than the solution listed in the answer) Commented Sep 5, 2018 at 18:01

2 Answers 2

1

This is what I use to upgrade:

How to update Magento2 using composer

Here is the solution that always works for me:

- composer require magento/product-community-edition 2.0.5 --no-update
- composer update
- rm -rf var/di var/generation
- php bin/magento cache:flush
- php bin/magento setup:upgrade
- php bin/magento setup:di:compile
- php bin/magento indexer:reindex
Abhishek Panchal
4,9643 gold badges22 silver badges39 bronze badges
answered Aug 30, 2018 at 17:17
1
  • ok, thanks - forgot I could run it that way to let composer do it. I had already updated one instance, but forgot that while my local copy isn't tied to a web server, it can work with composer. Doing that didn't update the top so I guess that answers that question. Commented Aug 30, 2018 at 18:09
0

Ran composer manually - looked at header of composer.json. Version at the top didn't update.

Happy Vivek?

answered Sep 5, 2018 at 18:01
1
  • ¯_(ツ)_/¯ ..... Commented Sep 5, 2018 at 18:10

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.