I am trying to use modman
(https://github.com/colinmollenhour/modman) for managing my Extensions in github.
First I am trying to add MagePsycho_Someext
extension as demo.
So far I have done the following steps
/var/www/magento-dir/ -> My Magento Installation Dir
/var/www/MagePsycho_Extensions/ --> Git Repository Dir
cd /var/www/MagePsycho_Extensions/
git clone [email protected]:magepsycho/Someext.git
touch modman
git commit -am 'Modman file added'
git push origin master
cd /var/www/magento-dir/
modman init
modman clone [email protected]:magepsycho/Someext.git
- Developed the extension 'MagePsycho_Someext' in /var/www/magento-dir with the following files
- app/etc/modules/MagePsycho_Someext.xml
- app/code/local/MagePsycho/Someext/etc/config.xml
- app/code/local/MagePsycho/Someext/Helper/Data.php
10 Added the files mapping info in /var/www/magento-dir/.modman/Someext/modman as
app/etc/modules/MagePsycho_Someext.xml app/etc/modules/MagePsycho_Someext.xml
app/code/local/MagePsycho/Someext/etc/config.xml app/code/local/MagePsycho/Someext/etc/config.xml
app/code/local/MagePsycho/Someext/Helper/Data.php app/code/local/MagePsycho/Someext/Helper/Data.php
11 modman update Someext
but got the following errors:
WARNING: Target does not exist (.modman/Someext/modman):
app/etc/modules/MagePsycho_Someext.xml app/etc/modules/MagePsycho_Someext.xml
Notes:
I am developing extensions in /var/www/magento-dir/
. And want to deploy these extensions(one per repository) in github using modman.
When I am finished with module development, I want those files to be added to the repository. For that I have used .modman/*/modman file for mapping. But unable to make it work.
Where and what am I missing?
Or Is this the incorrect approach?
[EDIT]
I just realised that my approach is just opposite. First, You have to add extension files and modman with path mappings, push it to the repo and then pull it using modman clone
.
How would you do if you first develop the extension and then use modman for pushing changes to the repo?