File tree 1 file changed +33
-0
lines changed
1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+ set +e
3
+
4
+ RED=' \033[0;31m'
5
+ GREEN=' \033[0;32m'
6
+ NC=' \033[0m'
7
+
8
+ BASE_URL=${1:- master-7rqtwti-mfwmkrjfqvbjk.us-4.magentosite.cloud}
9
+
10
+ install_sampledata () {
11
+ echo -e " ${GREEN} Setting up composer repository for Venia sample data.${NC} "
12
+ bin/composer config --no-interaction --ansi repositories.venia-sample-data composer https://repo.magento.com
13
+
14
+ echo -e " ${GREEN} Requiring Venia sample data metapackage.${NC} "
15
+ bin/composer require --no-interaction --ansi magento/venia-sample-data:*
16
+
17
+ echo -e " ${GREEN} Installing Venia sample data modules.${NC} "
18
+ bin/magento setup:upgrade
19
+
20
+ echo -e " ${GREEN} Reindexing the data from the modules.${NC} "
21
+ bin/magento indexer:reindex
22
+ }
23
+
24
+ install_sampledata
25
+
26
+ ENV_DIST_FILE=" packages/venia-concept/.env.dist"
27
+ if [ -f " $ENV_DIST_FILE " ]; then
28
+ cp " $ENV_DIST_FILE " packages/venia-concept/.env
29
+ else
30
+ echo -e " ${RED} .env.dist file not found. Continuing without copying.${NC} "
31
+ fi
32
+
33
+ echo -e " ${GREEN} Script completed successfully.${NC} "
You can’t perform that action at this time.
0 commit comments