Created
January 11, 2016 09:42
-
-
Save rootindex/b281e5dbda9ebcc7e030 to your computer and use it in GitHub Desktop.
Install Magento2 with composer
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
#!/bin/sh | |
# specify directory if not in it | |
composer create-project magento/community-edition . | |
# Fix file permissions | |
find . -type d -exec chmod 700 {} \; && find . -type f -exec chmod 600 {} \; | |
# execute if you have not done so in the past | |
composer config repositories.magento composer http://packages.magento.com | |
# create db | |
mysqladmin -udev -pdev create m22 | |
magento setup:install --db-host=localhost --db-name=m22 --db-user=dev --db-password=dev --backend-frontname=admin --admin-user=admin --admin-password=password [email protected] --admin-firstname=Admin --admin-lastname=Admin --base-url=http://m2.dev/ --base-url-secure=https://m2.dev/ --language=en_US --currency=USD --use-rewrites=1 --use-secure=1 --use-secure-admin=1 --cleanup-database |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment