Giter Site home page Giter Site logo

magento-dev-vagrant-chef-solo's Introduction

Magento dev box with Vagrant and Chef Solo

Development box configured to run Magento CE.

  • Ubuntu 12.04 LTS
  • All Magento CE required PHP extensions installed:
    • PDO_MySQL
    • simplexml
    • mcrypt
    • hash
    • GD
    • Dom
    • iconv
    • curl
    • SOAP
  • Other misc packages installed:
    • git
    • vim
    • apc
  • Apache virtual host + MySQL database setup
    • access via www.magento.dev or magento.dev on the host machine
    • database details:
      • database: magentodb
      • user: magento_user
      • password: magento_pass
    • database can be accessed from the host machine:
      • host: 10.10.10.2
      • use user + password above
    • root user for the database is:
      • user: root
      • password: root
  • Composer installed and available globally
    • Sample composer.json includes:
      • QA + static analysis tools (PHPUnit, PHP_CodeSniffer etc.)
      • misc magento dev tools (n98-magerun etc.)
  • XDebug installed and setup to allow remote debugging
    • To remote debug use the following values in your ide / debugger:
      • host: 10.10.10.2
      • remote port: 9000
      • ide key: magento_dev
  • Includes script to install Magento CE 1.8.1.0 + sample data
    • n98-magerun used to install magento + sample data
    • installation settings can be changed in .n98-magerun.yaml
    • default admin user:
      • user: admin
      • password: password123

Prerequisites

Usage

Install required Ruby Gems:

bundle install

Setup and provision the box:

vagrant up

Install composer dependencies:

composer install --prefer-dist

Install Magento CE 1.8.1.0 + sample data (make sure you modify the installation settings to suit in .n98-magerun.yaml before running this!)

vagrant ssh -c "~/install-magento.sh"

You should now be able to access the magento store at http://www.magento.dev.

FAQ's

Notes

I have only tested this on OS X (10.9). In theory it should work on most operating systems, although Windows will probably have a problem using NFS for synced folders. See NFS alternatives here.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.