Book Image

Magento PHP Developer's Guide

By : Allan MacGregor
Book Image

Magento PHP Developer's Guide

By: Allan MacGregor

Overview of this book

<p>Magento has completely reshaped the face of e-commerce since its launch in 2008. Its revolutionary focus on object oriented and EAV design patterns has allowed it to become the preferred tool for developers and retailers alike.</p> <p>"Magento PHP Developer’s Guide" is a complete reference to Magento, allowing developers to understand its fundamental concepts, and get them developing and testing Magento code.</p> <p>The book starts by building the reader’s knowledge of Magento, providing them with the information, techniques, and tools that they require to start their first Magento development.</p> <p>After building this knowledge, the book will then look at more advanced topics: how to test your code, how to extend the frontend and backend, and deploying and distributing custom modules.</p> <p>"Magento PHP Developer’s Guide" will help you navigate your way around your first Magento developments, helping you to avoid all of the most common headaches new developers face when first getting started.</p>
Table of Contents (16 chapters)
Magento PHP Developer's Guide
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

The road towards zero-downtime deployment


Deploying to production is probably one of the most dreaded tasks for developers, and more often than not, it will be improperly done.

But what is zero-downtime deployment? Well, it is to production with confidence, knowing the code is properly tested and ready, this is the ideal that all Magento developers should aspire to.

This is achieved not by a single process or tool but by a combination of techniques, standards, and tools. In this chapter we will learn the following:

  • Distributing our extension through Magento Connect

  • The role of version control systems in deployment

  • Proper practices for branching and merging changes

Make it right from scratch

In the previous chapter, we learned how testing can not only enhance our workflow but also save us from future headaches. The unit tests, integration tests, and automated tools are all at our disposal to ensure that our code is properly tested.

Writing tests means more than just putting together a few tests and...