Last active
October 31, 2018 19:55
-
-
Save aliuosio/03912ab06be27dd90a5f83259665b0e6 to your computer and use it in GitHub Desktop.
Magento 2 Console Install with Sampledata
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
composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition . | |
find var vendor pub/static pub/media app/etc -type d -exec chmod u+w {} \; | |
find var vendor pub/static pub/media app/etc -type f -exec chmod u+w {} \; | |
chmod u+x bin/magento; | |
bin/magento setup:install \ | |
--db-host=database \ | |
--db-name=magento2 \ | |
--db-user=app \ | |
--db-password=app \ | |
--backend-frontname=admin \ | |
--base-url=http://app.doc/ \ | |
--language=de_DE \ | |
--timezone=Europe/Berlin \ | |
--currency=EUR \ | |
--admin-lastname=Admin \ | |
--admin-firstname=Admin \ | |
[email protected] \ | |
--admin-user=admin \ | |
--admin-password=admin123 \ | |
--cleanup-database \ | |
--use-rewrites=1 \ | |
--use-sample-data | |
bin/magento setup:upgrade; | |
bin/magento indexer:reindex; | |
bin/magento cache:clean; | |
bin/magento deploy:mode:set |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment