3
3
vagrant_dir=$( cd " $( dirname " $0 " ) /../.." ; pwd)
4
4
magento_ce_dir=" ${vagrant_dir} /magento2ce"
5
5
magento_ee_dir=" ${magento_ce_dir} /magento2ee"
6
- ce_repository_default=" ${vagrant_dir} /local.config/ce_repository_url.txt.dist"
7
- ce_repository_custom=" ${vagrant_dir} /local.config/ce_repository_url.txt"
8
- # By default EE repository is not specified and EE project cannot be checked out
9
- ee_repository_custom=" ${vagrant_dir} /local.config/ee_repository_url.txt"
10
6
11
7
# Enable trace printing and exit on the first error
12
8
set -ex
13
9
14
10
bash " ${vagrant_dir} /scripts/host/check_requirements.sh"
15
11
16
12
# Check out CE repository
17
- rm -f " ${magento_ee_dir} /.gitkeep"
18
- rm -rf ${magento_ee_dir}
19
- if [ -f ${ce_repository_custom} ]; then
20
- ce_repository_url=$( cat ${ce_repository_custom} )
21
- else
22
- ce_repository_url=$( cat ${ce_repository_default} )
23
- fi
13
+ ce_repository_url=$( sh " ${vagrant_dir} /scripts/host/get_variable_value.sh" " ce_repository_url" )
24
14
git clone ${ce_repository_url} ${magento_ce_dir}
25
15
26
16
# Check out EE repository
17
+ # By default EE repository is not specified and EE project is not checked out
18
+ ee_repository_custom=" ${vagrant_dir} /local.config/ee_repository_url.txt"
27
19
if [ -f ${ee_repository_custom} ]; then
28
20
ee_repository_url=$( cat ${ee_repository_custom} )
29
21
git clone ${ee_repository_url} ${magento_ee_dir}
30
22
else
31
23
set +x
32
24
echo " Note: URL to Magento EE repository may be specified in ${ee_repository_custom} , then it will be checked out automatically."
33
25
set -x
34
- mkdir ${magento_ee_dir}
35
26
fi
36
27
37
28
# Update Magento dependencies via Composer
@@ -41,3 +32,5 @@ bash "${vagrant_dir}/scripts/host/composer.sh" install
41
32
# Create vagrant project
42
33
cd ${vagrant_dir}
43
34
vagrant up
35
+
36
+ bash " ${vagrant_dir} /scripts/host/configure_php_storm.sh"
0 commit comments