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

Commit a6fa2b2

Browse files
author
Alex Paliarush
committedSep 22, 2016
Merge remote-tracking branch 'origin/2.0' into Cli-Ux-Improvements
# Conflicts: # CHANGELOG.md # m-switch-to-ce # m-switch-to-ee # scripts/host/relink_sample_data.sh
2 parents 5598d5c + 98b7caf commit a6fa2b2

14 files changed

+25
-21
lines changed
 

‎CHANGELOG.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,12 @@ This project adheres to [Semantic Versioning](http://semver.org/).
1212

1313
### Changed
1414

15-
- Improved CLI scripts output formatting
15+
- After EE is linked, EE versions of composer.lock and composer.json are replaced back with CE versions (thus are not marked by git as modified)
16+
- Improved CLI scripts output formatting
1617

1718
### Fixed
1819

20+
- Fixed issue with some files marked as unversioned in git after EE linking
1921
- It is now possible to use spaces in path to vagrant project on Windows. On OSX and Linux hosts it works in non-NFS mode, in NFS mode it does not work because of [bug in vagrant](mitchellh/vagrant#7540)
2022
- Fixed issue with MySQL being down after VM power off
2123

‎etc/config.yaml.dist

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
repository_url:
2-
# [To apply changes: init-project -fc]
2+
# [To apply changes: init_project.sh -fc]
33
# git@github.com:magento/magento2ce.git OR custom one
44
ce: "git@github.com:magento/magento2.git"
55
# git@github.com:magento/magento2ee.git OR custom one
@@ -9,7 +9,7 @@ repository_url:
99
# git@github.com:magento/magento2-sample-data-ee.git OR custom one
1010
ee_sample_data: ""
1111
guest:
12-
# [To apply changes: init-project -f]
12+
# [To apply changes: init_project.sh -f]
1313
# NFS will be used for folder synchronization on *nix and OSX hosts by default.
1414
use_nfs: 1
1515
# Default is 2Gb, around 3Gb is necessary to run functional tests.
@@ -30,7 +30,7 @@ environment:
3030
magento:
3131
# [To apply changes: m-switch-to-ce -f OR m-switch-to-ee -f]
3232
install_sample_data: 0
33-
# [To apply changes: init-project -f]
33+
# [To apply changes: init_project.sh -f]
3434
host_name: "magento2.vagrant2"
3535
# [To apply changes: m-reinstall]
3636
admin_frontname: "admin"

‎init_project.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -148,4 +148,4 @@ if [[ ${host_os} == "Windows" ]] || [[ ${use_nfs} == 0 ]]; then
148148
If not using PhpStorm, you can set up synchronization using rsync"
149149
fi
150150

151-
info "See detailed log in '${vagrant_dir}/log/debug.log'"
151+
info "See detailed log in '${vagrant_dir}/log/debug.log'. For even more details you can set debug:vagrant_project to 1 in config.yaml"

‎m-bin-magento

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ vagrant ssh -c "\$MAGENTO_ROOT/bin/magento $arguments" 2> >(logError)
1818
# To debug, comment out line above and uncomment line below
1919
# vagrant ssh -c "php -d xdebug.remote_autostart=1 \$MAGENTO_ROOT/bin/magento $arguments" 2> >(logError)
2020

21-
info "See detailed log in '${vagrant_dir}/log/debug.log'"
21+
info "See detailed log in '${vagrant_dir}/log/debug.log'. For even more details you can set 'debug:vagrant_project' to 1 in etc/config.yaml"

‎m-clear-cache

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ fi
1414

1515
bash "${vagrant_dir}/scripts/host/m_clear_cache.sh" "$@" 2> >(logError)
1616

17-
info "See detailed log in '${vagrant_dir}/log/debug.log'"
17+
info "See detailed log in '${vagrant_dir}/log/debug.log'. For even more details you can set 'debug:vagrant_project' to 1 in etc/config.yaml"

‎m-composer

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ fi
1414

1515
bash "${vagrant_dir}/scripts/host/m_composer.sh" "$@" 2> >(logError)
1616

17-
info "See detailed log in '${vagrant_dir}/log/debug.log'"
17+
info "See detailed log in '${vagrant_dir}/log/debug.log'. For even more details you can set 'debug:vagrant_project' to 1 in etc/config.yaml"

‎m-reinstall

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ fi
1414

1515
bash "${vagrant_dir}/scripts/host/m_reinstall.sh" "$@" 2> >(logError)
1616

17-
info "See detailed log in '${vagrant_dir}/log/debug.log'"
17+
info "See detailed log in '${vagrant_dir}/log/debug.log'. For even more details you can set 'debug:vagrant_project' to 1 in etc/config.yaml"

‎m-search-engine

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ fi
1515
cd "${vagrant_dir}"
1616
vagrant ssh -c "bash /vagrant/scripts/guest/m-search-engine ${@}" 2> >(logError)
1717

18-
info "See detailed log in '${vagrant_dir}/log/debug.log'"
18+
info "See detailed log in '${vagrant_dir}/log/debug.log'. For even more details you can set 'debug:vagrant_project' to 1 in etc/config.yaml"

‎m-switch-to-ce

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ fi
1414

1515
bash "${vagrant_dir}/scripts/host/m_switch_to_ce.sh" "$@" 2> >(logError)
1616

17-
info "See detailed log in '${vagrant_dir}/log/debug.log'"
17+
info "See detailed log in '${vagrant_dir}/log/debug.log'. For even more details you can set 'debug:vagrant_project' to 1 in etc/config.yaml"

‎m-switch-to-ee

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ fi
1414

1515
bash "${vagrant_dir}/scripts/host/m_switch_to_ee.sh" "$@" 2> >(logError)
1616

17-
info "See detailed log in '${vagrant_dir}/log/debug.log'"
17+
info "See detailed log in '${vagrant_dir}/log/debug.log'. For even more details you can set 'debug:vagrant_project' to 1 in etc/config.yaml"

‎m-varnish

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ fi
1515
cd "${vagrant_dir}"
1616
vagrant ssh -c "bash /vagrant/scripts/guest/m-varnish ${@}" 2> >(logError)
1717

18-
info "See detailed log in '${vagrant_dir}/log/debug.log'"
18+
info "See detailed log in '${vagrant_dir}/log/debug.log'. For even more details you can set 'debug:vagrant_project' to 1 in etc/config.yaml"

‎scripts/host/m_switch_to_ce.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,9 @@ else
3636
fi
3737

3838
status "Unlinking EE repository"
39-
${php_executable} -f ${magento_ee_dir}/dev/tools/build-ee.php -- --command=unlink --ee-source="${magento_ee_dir}" --ce-source="${magento_ce_dir}" 2> >(logError) > >(log)
39+
${php_executable} -f ${magento_ee_dir}/dev/tools/build-ee.php -- --command=unlink --ee-source="${magento_ee_dir}" --ce-source="${magento_ce_dir}" --exclude=true 2> >(logError) > >(log)
4040

41+
# TODO: Remove after some time. For now this is left for backward compatibility
4142
cd ${magento_ce_dir}
4243
git checkout composer.json
4344
git checkout composer.lock

‎scripts/host/m_switch_to_ee.sh

+3-2
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,8 @@ else
3232
fi
3333

3434
status "Linking EE repository"
35-
${php_executable} -f ${magento_ee_dir}/dev/tools/build-ee.php -- --command=link --ee-source="${magento_ee_dir}" --ce-source="${magento_ce_dir}" 2> >(logError) > >(log)
35+
${php_executable} -f ${magento_ee_dir}/dev/tools/build-ee.php -- --command=link --ee-source="${magento_ee_dir}" --ce-source="${magento_ce_dir}" --exclude=true 2> >(logError) > >(log)
3636

37-
cp ${magento_ee_dir}/composer.json ${magento_ce_dir}/composer.json
3837
cp ${magento_ee_dir}/composer.lock ${magento_ce_dir}/composer.lock
3938

4039
if [[ ${host_os} == "Windows" ]] || [[ $(bash "${vagrant_dir}/scripts/get_config_value.sh" "guest_use_nfs") == 0 ]]; then
@@ -56,6 +55,8 @@ bash "${vagrant_dir}/scripts/host/relink_sample_data.sh" 2> >(logError)
5655
bash "${vagrant_dir}/scripts/host/m_clear_cache.sh" 2> >(logError)
5756
bash "${vagrant_dir}/scripts/host/m_composer.sh" install 2> >(logError)
5857

58+
cd ${magento_ce_dir} && git checkout composer.lock 2> >(logError) > >(log)
59+
5960
if [[ ${host_os} == "Windows" ]] || [[ $(bash "${vagrant_dir}/scripts/get_config_value.sh" "guest_use_nfs") == 0 ]]; then
6061
read -p "$(warning "[Action Required] Wait while Magento2 code is uploaded in PhpStorm and press any key to continue...")" -n1 -s
6162
fi

‎scripts/host/relink_sample_data.sh

+5-5
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,17 @@ fi
2222
# As a precondition, disable CE sample data
2323
if [[ -f "${magento_ce_sample_data_dir}/dev/tools/build-sample-data.php" ]]; then
2424
status "Unlinking CE sample data"
25-
${php_executable} -f "${magento_ce_sample_data_dir}/dev/tools/build-sample-data.php" -- --command=unlink --ce-source="${magento_ce_dir}" --sample-data-source="${magento_ce_sample_data_dir}" 2> >(logError) > >(log)
25+
${php_executable} -f "${magento_ce_sample_data_dir}/dev/tools/build-sample-data.php" -- --command=unlink --ce-source="${magento_ce_dir}" --sample-data-source="${magento_ce_sample_data_dir}" --exclude=true 2> >(logError) > >(log)
2626
fi
2727
# As a precondition, disable EE sample data
2828
if [[ -f "${magento_ee_sample_data_dir}/dev/tools/build-sample-data.php" ]]; then
29-
"${php_executable}" -f "${magento_ee_sample_data_dir}/dev/tools/build-sample-data.php" -- --command=unlink --ce-source="${magento_ce_dir}" --sample-data-source="${magento_ee_sample_data_dir}" 2> >(logError) > >(log)
29+
"${php_executable}" -f "${magento_ee_sample_data_dir}/dev/tools/build-sample-data.php" -- --command=unlink --ce-source="${magento_ce_dir}" --sample-data-source="${magento_ee_sample_data_dir}" --exclude=true 2> >(logError) > >(log)
3030
status "Unlinking EE sample data"
3131
fi
3232

3333
if [[ ${install_ee} -eq 1 ]]; then
3434
status "Linking EE to CE"
35-
"${php_executable}" -f "${magento_ee_dir}/dev/tools/build-ee.php" -- --command=link --ee-source="${magento_ee_dir}" --ce-source="${magento_ce_dir}" 2> >(logError) > >(log)
35+
"${php_executable}" -f "${magento_ee_dir}/dev/tools/build-ee.php" -- --command=link --ee-source="${magento_ee_dir}" --ce-source="${magento_ce_dir}" --exclude=true 2> >(logError) > >(log)
3636
fi
3737

3838
if [[ ${install_sample_data} -eq 1 ]]; then
@@ -46,7 +46,7 @@ if [[ ${install_sample_data} -eq 1 ]]; then
4646
# Sample data available and should be enabled
4747
success "CE Sample data enabled"
4848
cd ${magento_ce_sample_data_dir} && git fetch && git pull 2> >(logError) > >(log)
49-
"${php_executable}" -f "${magento_ce_sample_data_dir}/dev/tools/build-sample-data.php" -- --command=link --ce-source="${magento_ce_dir}" --sample-data-source="${magento_ce_sample_data_dir}" 2> >(logError) > >(log)
49+
"${php_executable}" -f "${magento_ce_sample_data_dir}/dev/tools/build-sample-data.php" -- --command=link --ce-source="${magento_ce_dir}" --sample-data-source="${magento_ce_sample_data_dir}" --exclude=true 2> >(logError) > >(log)
5050
fi
5151

5252
if [[ ${install_ee} -eq 1 ]]; then
@@ -60,7 +60,7 @@ if [[ ${install_sample_data} -eq 1 ]]; then
6060
# Sample data available and should be enabled
6161
success "EE Sample data enabled"
6262
cd ${magento_ee_sample_data_dir} && git fetch && git pull 2> >(logError) > >(log)
63-
"${php_executable}" -f "${magento_ee_sample_data_dir}/dev/tools/build-sample-data.php" -- --command=link --ce-source="${magento_ce_dir}" --sample-data-source="${magento_ee_sample_data_dir}" 2> >(logError) > >(log)
63+
"${php_executable}" -f "${magento_ee_sample_data_dir}/dev/tools/build-sample-data.php" -- --command=link --ce-source="${magento_ce_dir}" --sample-data-source="${magento_ee_sample_data_dir}" --exclude=true 2> >(logError) > >(log)
6464
fi
6565
fi
6666
fi

0 commit comments

Comments
 (0)
This repository has been archived.