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

Commit bfbfe12

Browse files
author
Alexander Paliarush
committed
Fixes and documentation updates
- Fixed host scripts for EE linking/unlinking - Updated URL of PHP downloadable for Windows - Default branch changed to 2.0, added respective section to documentation
1 parent 1ed8d16 commit bfbfe12

File tree

7 files changed

+15
-6
lines changed

7 files changed

+15
-6
lines changed

README.md

+8
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* [Requirements](#requirements)
1010
* [Installation steps](#installation-steps)
1111
* [Default credentials and settings](#default-credentials-and-settings)
12+
* [Getting updates and fixes](#getting-updates-and-fixes)
1213
* [GitHub limitations](#github-limitations)
1314
* [Day-to-day development scenarios](#day-to-day-development-scenarios)
1415
* [Reinstall Magento](#reinstall-magento)
@@ -85,6 +86,7 @@ Software listed below should be available in [PATH](https://en.wikipedia.org/wik
8586
1. Use `vagrant-magento` directory as project root in PHP Storm (not `vagrant-magento/magento2ce`). This is important, because in this case PHP Storm will be configured automatically by [init_project.sh](init_project.sh). If NFS files sync is disabled in [config](etc/config.yaml.dist) and ![](docs/images/windows-icon.png) on Windows hosts [verify deployment configuration in PHP Storm](docs/phpstorm-configuration-windows-hosts.md)
8687

8788
### Default credentials and settings
89+
8890
Some of default settings are available for override. These settings can be found in the file [etc/config.yaml.dist](etc/config.yaml.dist).
8991
To override settings just create a copy of the file under the name 'config.yaml' and put there your custom settings.
9092
When using [init_project.sh](init_project.sh), if not specified manually, random IP address is generated and is used as suffix for host name to prevent collisions, in case when 2 or more instances are running at the same time.
@@ -109,6 +111,12 @@ Upon a successful installation, you'll see the location and URL of the newly-ins
109111
- CE codebase: `vagrant_project_root/magento2ce`
110112
- EE codebase will be available if path to EE repository is specified in `etc/config.yaml`: `vagrant_project_root/magento2ce/magento2ee`
111113

114+
### Getting updates and fixes
115+
116+
Current vagrant project follows [semantic versioning](http://semver.org/spec/v2.0.0.html) so feel free to pull the latest features and fixes, they will not break your project.
117+
For example your current branch is `2.0`, then it will be safe to pull any changes from `origin/2.0`. However branch `3.0` will contain changes backward incompatible with `2.0`.
118+
Note, that semantic versioning is only used for `x.0` branches (not for `develop`).
119+
112120
### GitHub limitations
113121

114122
Be aware that you may encounter GitHub limits on the number of downloads (used by Composer to download Magento dependencies).

docs/images/release_badge.png

98 Bytes
Loading

docs/images/release_badge.svg

+1-1
Loading

m-switch-to-ce

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,5 @@ if [[ ${host_os} == "Windows" || $(bash "${vagrant_dir}/scripts/get_config_value
3636
fi
3737

3838
bash "${vagrant_dir}/m-clear-cache"
39-
bash "${vagrant_dir}/m-composer install"
39+
bash -c "${vagrant_dir}/m-composer install"
4040
bash "${vagrant_dir}/m-reinstall"

m-switch-to-ee

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,5 @@ if [[ ${host_os} == "Windows" || $(bash "${vagrant_dir}/scripts/get_config_value
3737
fi
3838

3939
bash "${vagrant_dir}/m-clear-cache"
40-
bash "${vagrant_dir}/m-composer install"
40+
bash -c "${vagrant_dir}/m-composer install"
4141
bash "${vagrant_dir}/m-reinstall"

scripts/host/composer.sh

+3-2
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,18 @@ set -ex
1313

1414
bash "${vagrant_dir}/scripts/host/check_requirements.sh"
1515

16+
php_executable=$(bash "${vagrant_dir}/scripts/host/get_path_to_php.sh")
17+
1618
# Setup composer if necessary
1719
if [ ! -f ${composer_phar} ]; then
1820
cd ${composer_dir}
19-
curl -sS https://getcomposer.org/installer | php
21+
curl -sS https://getcomposer.org/installer | ${php_executable}
2022
fi
2123

2224
# Configure composer credentials
2325
cd ${current_dir}
2426
cp ${composer_auth_json} "${PWD}/auth.json"
2527

26-
php_executable=$(bash "${vagrant_dir}/scripts/host/get_path_to_php.sh")
2728
host_os=$(bash "${vagrant_dir}/scripts/host/get_host_os.sh")
2829
if [[ $(bash "${vagrant_dir}/scripts/get_config_value.sh" "environment_composer_prefer_source") == 1 ]]; then
2930
# prefer-source is slow but guarantees that there will be no issues related to max path length on Windows

scripts/host/install_php.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ host_os=$(bash "${vagrant_dir}/scripts/host/get_host_os.sh")
77
set -ex
88

99
if [[ ${host_os} == "Windows" ]]; then
10-
curl http://windows.php.net/downloads/releases/php-7.0.2-nts-Win32-VC14-x86.zip -o ${vagrant_dir}/lib/php.zip
10+
curl http://windows.php.net/downloads/releases/archives/php-7.0.2-nts-Win32-VC14-x86.zip -o ${vagrant_dir}/lib/php.zip
1111
unzip -q ${vagrant_dir}/lib/php.zip -d ${vagrant_dir}/lib/php
1212
rm -f ${vagrant_dir}/lib/php.zip
1313
cp "${vagrant_dir}/lib/php/php.ini-development" "${vagrant_dir}/lib/php/php.ini"

0 commit comments

Comments
 (0)