Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

version control and deployment
 
jimmypalmer
Sr. Member
 
Total Posts:  79
Joined:  2008-05-04
 

Does anyone have any good suggestions or good practices that they use for keeping your custom version of magento up-to-date?

AND

Any suggestions on deployment with magento?

 
Magento Community Magento Community
Magento Community
Magento Community
 
sherrie
Moderator
 
Avatar
Total Posts:  1655
Joined:  2007-12-14
Waterloo, ON
 

I always keep my changes out of the core (theme and code) so nothing is replaced when I upgrade Magento.  If you’re changing any of the core code, it’s real easy to duplicate the files you’re changing it into your local folder - Magento will override any core code with local code.

 
Magento Community Magento Community
Magento Community
Magento Community
 
WisdOMbooks
Sr. Member
 
Avatar
Total Posts:  144
Joined:  2007-08-31
Kolkata (Calcutta) - INDIA
 
sherrie - 26 June 2008 07:23 AM

I always keep my changes out of the core (theme and code) so nothing is replaced when I upgrade Magento.

Could you, dear Sherrie, elaborate a bit
on HOW exactly you *keep changes out of the core*?

This could be a very important instruction
to all those many out there (like yours truly red face )
who have no idea at all how to implement it.

This way we all be able to avoid troubles
when upgrading Magento next time

Really… thank you for your precious time cool smile

A n g e l o
 
Magento Community Magento Community
Magento Community
Magento Community
 
sherrie
Moderator
 
Avatar
Total Posts:  1655
Joined:  2007-12-14
Waterloo, ON
 

Sure thing. smile

I’ll try to get to that tonight for you, I’m pretty sure a screenshot of my side by side folders in FTP will explain the best way.

 
Magento Community Magento Community
Magento Community
Magento Community
 
sherrie
Moderator
 
Avatar
Total Posts:  1655
Joined:  2007-12-14
Waterloo, ON
 

Ok, so it’s this simple.  If I want to make a change to app/code/core/Mage/Sales/Model/Quote/Address/Total/Shipping.php then I first duplicate the file to app/code/local/Mage/Sales/Model/Quote/Address/Total/Shipping.php I then make my changes in the second file (located in local instead of core) and upload it the same way I would have uploaded the one in core.  Magento looks at the local folder and takes any changes made there and overrides the core folder with them. 

The attached file shows the above in picture form.  Let me know if you have any further questions or if that doesn’t make sense. smile

Image Attachments
Picture-4.jpg
 
Magento Community Magento Community
Magento Community
Magento Community
 
jimmypalmer
Sr. Member
 
Total Posts:  79
Joined:  2008-05-04
 

thanks!

now what about deployment.  I’ve been using rsync.  I wonder if capistrano might work.

 
Magento Community Magento Community
Magento Community
Magento Community
 
WisdOMbooks
Sr. Member
 
Avatar
Total Posts:  144
Joined:  2007-08-31
Kolkata (Calcutta) - INDIA
 

THANK YOU, dear Sherrie, for your practical & useful tip cool smile

I think this should become a Wiki article or such,
since it so important for all developers
to be able to keep one’s own changes to the code,
upgrade after upgrade
(the alternative being…
a mess surprised after each upgrade)

A n g e l o

 
Magento Community Magento Community
Magento Community
Magento Community
 
WisdOMbooks
Sr. Member
 
Avatar
Total Posts:  144
Joined:  2007-08-31
Kolkata (Calcutta) - INDIA
 

Ah ! Dear Sherrie,
I noticed that your post counter
has passed the 500 marks…
C O N G R A T U L A T I O N s
excaim

To be said to you
is a big THANK YOU
on behalf of all the people that you help,
with your expertise and kindness,
to find an answer to their queries.

ALL the BEST and
many happy returns of the number
(you know: 500, 1000, 1500, etc.) grin

CIAO: A n g e l o

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top