Skip to content
This repository has been archived by the owner on Feb 16, 2021. It is now read-only.

kaminrunde/vagrant-chef-magento

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vagrant-chef-magento

toolset

setup the application

  • create an vagrant directory: {app_dir} (e.g. /home/users/me/vagrant)
  • create an application directory: {app_dir} (e.g. /home/users/me/vagrant/sites/default)
  • go to the {app_dir} and:
    • clone the vagrant-chef-magento
    • clone YOUR the mage-repo into {app_dir}/sites/default

git clone [email protected]:kaminrunde/vagrant-chef-magento.git {app_dir}
git clone [email protected]:YOUR-MAGE/REPO.git {app_dir}/sites/default

  • copy your magento database into: {app_dir}/db_import/
  • rename database-file to: magedev_db.sql
  • => {app_dir}/db_import/magedev_db.sql (should exist)

start vm

  • VM default ip is 192.168.13.37
  • make a local host entry (/etc/hosts or C:\Windows\system32\drivers\ets\hosts) for: 192.168.13.37 magento.local
  • ping magento.local (should work -> 192.168.13.37)
  • open a console
  • got to the {app_dir}
  • fire up your server: "vagrant up"
  • take a break -- this may take a while ;-)
  • point your browser to: http://magento.local
  • done .. gl ;-)

(Configuration Options see: Vagrantfile form the vagrant-chef-magento repo)

reimport the database

remove the file {app_dir}/db_import/.imported

mac users

uncomment the line:

config.vm.share_folder "v-root", "/vagrant", ".", :nfs => true

in the Vagrantfile for better performance

example with sample data

setup a new magento:

get sample data: http://www.magentocommerce.com/downloads/assets/1.6.1.0/magento-sample-data-1.6.1.0.zip

and extract the magento_sample_data_for_1.6.1.0.sql to db_import/magedev_db.sql

get magento source http://www.magentocommerce.com/getmagento/1.7.0.2/magento-1.7.0.2.zip

and extract to {app_dir}/sites/default

vagrant up

hint for starting from production Magento db

Checkout the wiki for sql statement to clean production Magento from customer data.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published