Tutorial - OpenMage installation using Composer #2381
Replies: 2 comments
-
This is a composer.json that will correctly install OM 20.0.15 in the "openmage" folder, then you'll have to point your webserver's root directory to that folder:
took me some time to figure it out. composer's patches plugin isn't strictly necessary but I use it all the time to add custom patches (or PRs from openmage that are not merged yet). |
Beta Was this translation helpful? Give feedback.
-
Actually you are not supposed to point the server to the |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Recently, enough ink has flowed about Composer. This discussion aims to lay the foundations of a tutorial on how to install OpenMage in a development environment and how to use it in production, how to update it using Composer. The discussion is useful because I found that not everyone uses Composer in OpenMage (I am one of them) or has used it in a project.
Intuitively, if someone asks me to install OpenMage using Composer, after installing it on the server I would go to packagist.org and search for the project name. Then I would run the command shows there
composer require openmage/magento-lts
.If I run it in the root directory I get the following tree:
composer.json
composer.lock
root/
vendor/
-- autoload.php
-- well/
-- composer/
-- eloquent/
-- flyinmana/
-- justinrainbow/
-- magento-hackathon/
-- openmage/
---- magento-lts/ (here is what we find in GitHub)
-- psr/
-- symphony/
The problem I have now is that to run OpenMage in the browser I will have to write a rather long path /vendor/openmage/magento-lts/, but I can solve it by establishing the root directory up to here.
Any experience is welcome.
Beta Was this translation helpful? Give feedback.
All reactions