Created
March 20, 2017 10:32
-
-
Save phamngsinh/8be26046f486535785d654d12cdbb077 to your computer and use it in GitHub Desktop.
How to install sample data after magento setup ?
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
| 1 .Add dependencies to the composer.json: | |
| composer require magento/module-bundle-sample-data:100.1.0 magento/module-widget-sample-data:100.1.0 magento/module-theme-sample-data:100.1.0 magento/module-catalog-sample-data:100.1.0 magento/module-customer-sample-data:100.1.0 magento/module-cms-sample-data:100.1.0 magento/module-catalog-rule-sample-data:100.1.0 magento/module-sales-rule-sample-data:100.1.0 magento/module-review-sample-data:100.1.0 magento/module-tax-sample-data:100.1.0 magento/module-sales-sample-data:100.1.0 magento/module-grouped-product-sample-data:100.1.0 magento/module-downloadable-sample-data:100.1.0 magento/module-msrp-sample-data:100.1.0 magento/module-configurable-sample-data:100.1.0 magento/module-product-links-sample-data:100.1.0 magento/module-wishlist-sample-data:100.1.0 magento/module-swatches-sample-data:100.1.0 magento/sample-data-media:100.1.0 magento/module-offline-shipping-sample-data:100.1.0 --no-update | |
| 2. Run: | |
| composer update | |
| 3. Deploy sample data: | |
| bin/magento sampledata:deploy | |
| 4. Enable sample data modules: | |
| bin/magento module:enable Magento_CustomerSampleData Magento_MsrpSampleData Magento_CatalogSampleData Magento_DownloadableSampleData Magento_OfflineShippingSampleData Magento_BundleSampleData Magento_ConfigurableSampleData Magento_ThemeSampleData Magento_ProductLinksSampleData Magento_ReviewSampleData Magento_CatalogRuleSampleData Magento_SwatchesSampleData Magento_GroupedProductSampleData Magento_TaxSampleData Magento_CmsSampleData Magento_SalesRuleSampleData Magento_SalesSampleData Magento_WidgetSampleData Magento_WishlistSampleData | |
| 5. Remove old files: | |
| rm -rf var/cache/* var/page_cache/* var/generation/* | |
| 6.Upgrade magento files: | |
| bin/magento setup:upgrade | |
| 7.Recompile files: | |
| bin/magento setup:di:compile | |
| 8.Do reindex: | |
| bin/magento indexer:reindex | |
| 9.Deploy static content: | |
| bin/magento setup:static-content:deploy |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment