Newbie/Dumb Question #12397
Unanswered
ClassicComics
asked this question in
Q&A / Support
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I used Composer to successfully (eventually)to install OpenMage over an existing Magento 1.9.4.5 site. I've been reading as much as I can on Composer, and I understand the gist of it, but I really couldn't find a Composer for Dummies article, or maybe I did, and I'm below that level. I also tried searching here, but couldn't really find the answer either, though I'm sure it's here somewhere....
Anyway, I want to use Composer to install empiricompany/reCaptcha into the same directory that I installed OpenMage to.
The instructions say to: Update the following to sections in your composer file.
Do I just edit the existing composer.jsn file, and add this into the existing code that is already in it for OpenMage, and then update it with composer update command in terminal? Or is there some other way to do this that I'm obviously not getting.... and if it is a simple cut and paste, does it just go in at the end of the file, after the existing code, or somewhere specific in the existing code? I thought about just renaming the current Composer.json file temporarily to something else, and create a new one for this, and then put the original back when I'm done, but I'm not sure that's the best way to do it, especially if new updates become available. Or am I just completely not getting this? It's 4:30am... I'm fried. Off to bed. Maybe tomorrow it will become obvious to me.
New code:
"require": {
"proxiblue/recaptcha": "*"
},
"repositories": [
{
"type": "vcs",
"url": "https://github.com/ProxiBlue/reCaptcha.git"
}
],
{
"name": "my/composer-test",
"description": "OpenMage install",
"type": "project",
"license": "OSL-3.0",
"require": {
"aydin-hassan/magento-core-composer-installer": "^2.1.0",
"openmage/magento-lts": "*"
},
"extra": {
"magento-root-dir": ".",
"enable-patching": true,
"magento-core-package-type": "magento-source"
},
"config": {
"allow-plugins": {
"cweagans/composer-patches": true,
"magento-hackathon/magento-composer-installer": true,
"aydin-hassan/magento-core-composer-installer": true,
"openmage/composer-plugin": true
}
},
"minimum-stability": "dev",
"prefer-stable": true,
"require-dev": {
"n98/magerun": "^1.97"
}
}
Beta Was this translation helpful? Give feedback.
All reactions