As I had noted earlier this week, I have not had a lot of Magento development time lately, so today I thought I’d spend a bit of time setting up a Magento 1.5 development environment on my Mac. This post will take you through the steps to set up Magento development with Eclipse for editing/debugging and SVN for version control, with deployment being managed by Modman. This relates to the project structure I described in my presentation at Magento Imagine, with the exception that I won’t go into detail about setting up a separate extensions repository, as that is probably more relevant to developers who build and release extensions than developers working on a single Magento project.
What this guide assumes:
- Mac development environment with MAMP
- Linux production environment
- SVN for version control, but Git can work too.
- Modman for deployment. Written by Colin Mollenhour
What we will cover:
- Installing SVN, Magento and Modman.
- Getting a free SVN repository.
- Setting up a Magento store development project with version controlled extensions, templates/themes, locale and emails.
- Development and deployment of changes to Production.
We have a lot to get through, so let’s not delay.
Step 1: Install Magento Locally
We’ll zap through a commandline install. We’ll be installing into your web server doc root. If you would like help setting that up I wrote a guide to installing MAMP on a Mac (a long time ago) and also (extra for experts) a guide to setting up virtual hosts on MAMP too.
#In your ~/Downloads directory or some where suitable wget http://www.magentocommerce.com/downloads/assets/1.5.0.1/magento-1.5.0.1.tar.gz tar xzf magento-1.5.0.1.tar.gz # I keep all of my Magento development versions in a web folder within ~/Documents mv magento ~/Documents/web/magento/1.5.0.1 |