This repository was archived by the owner on Oct 1, 2020. It is now read-only.
File tree 4 files changed +25
-5
lines changed
4 files changed +25
-5
lines changed Original file line number Diff line number Diff line change @@ -35,10 +35,13 @@ if [ ! -d ${magento_ce_dir} ]; then
35
35
fi
36
36
fi
37
37
38
- use_nfs= $( bash " ${vagrant_dir} /scripts/host/shell/get_variable_value.sh " " guest_use_nfs " )
38
+
39
39
var_generation_dir=" ${magento_ce_dir} /var/generation"
40
- if [[ ! -d ${var_generation_dir} ]] && [[ ${use_nfs} == 0 ]] ; then
41
- mkdir ${var_generation_dir}
40
+ if [ ! -d ${var_generation_dir} ] ; then
41
+ host_os=$( bash " ${vagrant_dir} /scripts/host/shell/get_host_os.sh" )
42
+ if [[ ${host_os} == " Windows" || $( bash " ${vagrant_dir} /scripts/host/shell/get_variable_value.sh" " guest_use_nfs" ) == 0 ]]; then
43
+ mkdir ${var_generation_dir}
44
+ fi
42
45
fi
43
46
44
47
# Update Magento dependencies via Composer
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" UTF-8" ?>
2
2
<project version =" 4" >
3
- <component name =" PublishConfigData" >
3
+ <component name =" PublishConfigData" serverName = " <host_name> " <auto_upload_attributes> >
4
4
<serverData >
5
5
<paths name =" <host_name>" >
6
6
<serverdata >
7
7
<mappings >
8
- <mapping deploy =" $PROJECT_DIR$/magento2ce " local =" $PROJECT_DIR$/magento2ce" web =" /" />
8
+ <mapping deploy =" <magento_guest_path> " local =" $PROJECT_DIR$/magento2ce" web =" /" />
9
9
</mappings >
10
+ <excludedPaths >
11
+ <excludedPath local =" true" path =" $PROJECT_DIR$/magento2ce/app/etc" />
12
+ <excludedPath local =" true" path =" $PROJECT_DIR$/magento2ce/var/generation" />
13
+ </excludedPaths >
10
14
</serverdata >
11
15
</paths >
12
16
</serverData >
17
+ <auto_upload_option >
13
18
</component >
14
19
</project >
Original file line number Diff line number Diff line change @@ -14,11 +14,23 @@ cp -R "${vagrant_dir}/scripts/host/php-storm-configs/." "${vagrant_dir}/.idea/"
14
14
15
15
enabled_virtual_host_config=" /etc/apache2/sites-available/magento2.conf"
16
16
17
+ host_os=$( bash " ${vagrant_dir} /scripts/host/shell/get_host_os.sh" )
18
+ if [[ ${host_os} == " Windows" || $( bash " ${vagrant_dir} /scripts/host/shell/get_variable_value.sh" " guest_use_nfs" ) == 0 ]]; then
19
+ sed -i.back " s|<magento_guest_path>|/var/www/magento2ce|g" " ${vagrant_dir} /.idea/deployment.xml"
20
+ sed -i.back ' s|<auto_upload_attributes>| autoUpload="Always" autoUploadExternalChanges="true"|g' " ${vagrant_dir} /.idea/deployment.xml"
21
+ sed -i.back ' s|<auto_upload_option>|<option name="myAutoUpload" value="ALWAYS" />|g' " ${vagrant_dir} /.idea/deployment.xml"
22
+ else
23
+ sed -i.back " s|<magento_guest_path>|\$ PROJECT_DIR\$ /magento2ce|g" " ${vagrant_dir} /.idea/deployment.xml"
24
+ sed -i.back ' s|<auto_upload_attributes>||g' " ${vagrant_dir} /.idea/deployment.xml"
25
+ sed -i.back ' s|<auto_upload_option>||g' " ${vagrant_dir} /.idea/deployment.xml"
26
+ fi
27
+
17
28
sed -i.back " s|<host_name>|${magento_host_name} |g" " ${vagrant_dir} /.idea/webServers.xml"
18
29
sed -i.back " s|<ssh_port>|${ssh_port} |g" " ${vagrant_dir} /.idea/webServers.xml"
19
30
sed -i.back " s|<host_name>|${magento_host_name} |g" " ${vagrant_dir} /.idea/php.xml"
20
31
sed -i.back " s|<ssh_port>|${ssh_port} |g" " ${vagrant_dir} /.idea/php.xml"
21
32
sed -i.back " s|<host_name>|${magento_host_name} |g" " ${vagrant_dir} /.idea/deployment.xml"
33
+ sed -i.back " s|<host_name>|${magento_host_name} |g" " ${vagrant_dir} /.idea/deployment.xml"
22
34
sed -i.back " s|<host_name>|${magento_host_name} |g" " ${vagrant_dir} /.idea/.name"
23
35
sed -i.back " s|<host_name>|${magento_host_name} |g" " ${vagrant_dir} /.idea/modules.xml"
24
36
rm -rf ${vagrant_dir} /.idea/* .back
File renamed without changes.
You can’t perform that action at this time.
0 commit comments