Created
April 25, 2016 12:54
-
-
Save Vinai/2e7a1052c0900f22a422eff54a804afe to your computer and use it in GitHub Desktop.
Steps I use to install Magento 2 community edition
This file contains 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
#!/bin/bash | |
FOLDER=example | |
DB_NAME=magento2 | |
DB_USER=m2 | |
DB_PWD=wiener | |
BASE_URL=http://example.dev/ | |
composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition $FOLDER | |
php -dmemory_limit=-1 bin/magento setup:install --backend-frontname=admin --db-host=localhost \ | |
--db-name="$DB_NAME" --db-user="$DB_USER" --db-password="$DB_PWD" --base-url=http:$BASE_URL \ | |
--use-rewrites=1 --admin-user=admin --admin-password=password123 \ | |
[email protected] --admin-firstname=Admin --admin-lastname=User \ | |
--use-sample-data --cleanup-database | |
cd $FOLDER | |
# Run script from https://gist.github.com/Vinai/69dc72b9f4baa2506120 to set permissions |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Prepare a shared group membership before running https://gist.github.com/Vinai/69dc72b9f4baa2506120