This repository has been archived by the owner on Aug 22, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Home
Aleksey Razbakov edited this page Jan 13, 2015
·
2 revisions
There is no more need to store all Magento files in the project repo.
Create composer.json
in your project root:
{
"name": "your-company/your-project-name",
"description": "Your project description",
"minimum-stability": "dev",
"authors": [
{"name": "Your Name", "email": "your@email.com"}
],
"repositories": [
{"type": "composer", "url": "http://packages.kirchbergerknorr.de"},
{"type": "composer", "url": "http://packages.firegento.com"}
],
"require": {
"kirchbergerknorr/magento": "1.9.0.*"
},
"extra": {
"magento-root-dir": "src",
"auto-append-gitignore": true,
"magento-deploystrategy": "copy",
"magento-force": true
}
}
- Use
minimum-stability
property if you want to use in require section unstable latest master (version*
) instead of stable versions (like1.0.1
). - In
require
section forkirchbergerknorr/magento
you can use versions:1.8.1.
,1.7.0.*
,1.9.0.*
- Store your magento in subdirectory (property
magento-root-dir
=src
), sosrc/.gitignore
could be generated (propertyauto-append-gitignore
) and you don't need to store magento files in your repo and keep your git change set clean.
Do you have question? Ask here.