Created
November 18, 2015 17:17
-
-
Save davidalger/4700965288e75070e99c to your computer and use it in GitHub Desktop.
Install M2 for a new project
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
cd /sites | |
composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition m2.demo | |
cd m2.demo | |
chmod +x bin/magento | |
bin/magento sampledata:deploy | |
composer update | |
mysql -e 'create database m2_demo' | |
bin/magento setup:install --base-url=http://m2.demo --backend-frontname=backend \ | |
--admin-user=admin --admin-firstname=Admin --admin-lastname=Admin \ | |
[email protected] --admin-password=A123456 \ | |
--db-host=dev-db --db-user=root --db-name=m2_demo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment