-
-
Notifications
You must be signed in to change notification settings - Fork 399
Magento installer
Tom Klingenberg edited this page Apr 13, 2016
·
6 revisions
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
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]
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 your repo. The keys in the config file follow 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
shasum: 4abf582992311935cf1edcd888bf9024bc752cdf
extra:
sample-data: sample-data-1.6.1.0
- name: my-tarball-installation
version: 1.9.1.0
dist:
url: file:///home/cmuench/magento-1.9.1.0.tar.gz
type: tar
shasum: 8a93762d4897203dd77e3a527887199f66620678
extra:
sample-data: my-sample-data-1.9.1.0
demo-data-packages:
- name: my-sample-data-1.9.1.0
version: 1.9.1.0
dist:
url: file:///home/cmuench/my-sample-data-1.9.1.0.tar.gz
type: tar
shasum: 4abf582992311935cf1edcd888bf9024bc752cdf