-
Notifications
You must be signed in to change notification settings - Fork 163
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create option to not generate sample data and add extra data #149
- Loading branch information
Alex Paliarush
committed
Oct 29, 2017
1 parent
56c5c25
commit 4e2cc49
Showing
5 changed files
with
17 additions
and
3 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,6 +16,7 @@ | |
* [Clear Magento cache](#clear-magento-cache) | ||
* [Switch between CE and EE](#switch-between-ce-and-ee) | ||
* [Sample data installation](#sample-data-installation) | ||
* [Basic data generation](#basic-data-generation) | ||
* [Use Magento CLI (bin/magento)](#use-magento-cli-binmagento) | ||
* [Debugging with XDebug](#debugging-with-xdebug) | ||
* [Connecting to MySQL DB](#connecting-to-mysql-db) | ||
|
@@ -186,6 +187,16 @@ During initial project setup or during `bash init_project.sh -fc` (with `-fc` pr | |
|
||
To install Magento with sample data set `install_sample_data` in [config.yaml](etc/config.yaml.dist) to `1` and run `bash m-switch-to-ce -f` or `bash m-switch-to-ee -f`, depending on the edition to be installed. To disable sample data, set this option to `0` and force-switch to necessary edition (using the same commands). | ||
|
||
### Basic data generation | ||
|
||
Several entities are generated for testing purposes by default using REST API after Magento installation: | ||
- Customer with address (credentials `[email protected]`:`123123qQ`) | ||
- Category | ||
- Couple simple products | ||
- Configurable product | ||
|
||
To disable this feature, set `magento/generate_basic_data` in [config.yaml](etc/config.yaml.dist) to `0` and run `bash m-switch-to-ce -f` or `bash m-switch-to-ee -f`, depending on the edition to be installed. | ||
|
||
### Use Magento CLI (bin/magento) | ||
|
||
Go to 'vagrant-magento' created earlier and run in command line: | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,6 +46,8 @@ environment: | |
magento: | ||
# [To apply changes: m-switch-to-ce -f OR m-switch-to-ee -f] | ||
install_sample_data: 0 | ||
# [To apply changes: m-switch-to-ce -f OR m-switch-to-ee -f] Generate customer ([email protected]:123123qQ), category, simple product, configurable product after successful Magento installation | ||
generate_basic_data: 1 | ||
# [To apply changes: init_project.sh -f] | ||
host_name: "magento2.vagrant2" | ||
# [To apply changes: m-reinstall] | ||
|
File renamed without changes.
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