Skip to content
This repository was archived by the owner on Oct 1, 2020. It is now read-only.

Commit 84ac3ba

Browse files
author
Alex Paliarush
committed
Fixed PhpStorm initialization during initial project creation
1 parent 95d864a commit 84ac3ba

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

init_project.sh

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,14 @@ bash "${vagrant_dir}/scripts/host/composer.sh" install
8484
cd "${vagrant_dir}"
8585
vagrant up
8686

87+
echo "Configuring PhpStorm..."
88+
if [[ ${force_project_cleaning} -eq 1 ]] && [[ ${force_phpstorm_config_cleaning} -eq 1 ]]; then
89+
rm -rf "${vagrant_dir}/.idea"
90+
fi
91+
if [[ ! -f "${vagrant_dir}/.idea/deployment.xml" ]]; then
92+
bash "${vagrant_dir}/scripts/host/configure_php_storm.sh"
93+
fi
94+
8795
if [[ ${host_os} == "Windows" ]] || [[ ${use_nfs} == 0 ]]; then
8896
# Automatic switch to EE during project initialization cannot be supported on Windows
8997
bash "${vagrant_dir}/m-reinstall"
@@ -96,14 +104,6 @@ else
96104
fi
97105

98106
set +x
99-
echo "Configuring PhpStorm..."
100-
if [[ ${force_project_cleaning} -eq 1 ]] && [[ ${force_phpstorm_config_cleaning} -eq 1 ]]; then
101-
rm -rf "${vagrant_dir}/.idea"
102-
fi
103-
if [[ ! "$(ls -A "${vagrant_dir}/.idea")" ]]; then
104-
bash "${vagrant_dir}/scripts/host/configure_php_storm.sh"
105-
fi
106-
107107
bold=$(tput bold)
108108
regular=$(tput sgr0)
109109
echo "

0 commit comments

Comments
 (0)