Skip to content
cmuench edited this page Feb 15, 2013 · 2 revisions

Magento Installer (Experimental)

Since version 1.1.0 we deliver a magento installer which does the following:

  • Download magento by a list of git repos and zip files (mageplus, magelte, official community packages).
  • Try to create database if it does not exist.
  • Installs magento sample data if available (since version 1.2.0).
  • Starts magento installer
  • Set rewrite base in .htaccess file
n98-magerun.phar install

See it in action: http://youtu.be/WU-CbJ86eQc

Overwrite default settings

Create the yaml config file ~/.n98-magerun.yaml. Now you can define overwrites. The original config file is config.yaml in the source root folder.

Change of i.e. default currency and admin users:

commands:
  N98\Magento\Command\Installer\InstallCommand:
    installation:
      defaults:
        currency: USD
        admin_username: myadmin
        admin_firstname: Firstname
        admin_lastname: Lastname
        admin_password: mydefaultSecret
        admin_email: [email protected]

Add own magento repositories

Create the yaml config file ~/.n98-magerun.yaml. Now you can define overwrites. The original config file is config.yaml in the source root folder.

Add you repo. The keys in the config file following the composer package structure.

Example:

commands:
  N98\Magento\Command\Installer\InstallCommand:
    magento-packages:
      - name: my-magento-git-repository
        version: 1.x.x.x
        source:
          url: git://myserver/myrepo.git
          type: git
          reference: 1.x.x.x
        extra:
          sample-data: sample-data-1.6.1.0

      - name: my-zipped-magento
        version: 1.7.0.0
        dist:
          url: http://www.myserver.example.com/magento-1.7.0.0.tar.gz
          type: tar
        extra:
          sample-data: sample-data-1.6.1.0