File tree Expand file tree Collapse file tree 6 files changed +6
-7
lines changed Expand file tree Collapse file tree 6 files changed +6
-7
lines changed Original file line number Diff line number Diff line change 22
33[ ![ MIT License] ( https://img.shields.io/badge/license-MIT-blue.svg )] ( ./LICENSE )
44[ ![ Semver] ( http://img.shields.io/SemVer/2.0.0.png?color=blue )] ( http://semver.org/spec/v2.0.0.html )
5- [ ![ Latest GitHub release] ( https://img.shields.io/github/release/paliarush/magento2-vagrant-for-developers.svg )] ( https://github.com/paliarush/magento2-vagrant-for-developers/releases/latest )
5+ [ ![ Latest GitHub release] ( docs/images/release_badge.png )] ( https://github.com/paliarush/magento2-vagrant-for-developers/releases/latest )
66
77 * [ What You get] ( #what-you-get )
88 * [ How to install] ( #how-to-install )
Original file line number Diff line number Diff line change @@ -63,12 +63,7 @@ Vagrant.configure(VAGRANT_API_VERSION) do |config|
6363 guest_magento_dir , #2
6464 magento_host_name , #3
6565 config_data [ 'environment' ] [ 'use_php7' ] , #4
66- config_data [ 'magento' ] [ 'admin_frontname' ] , #5
67- config_data [ 'magento' ] [ 'language' ] , #6
68- config_data [ 'magento' ] [ 'timezone' ] , #8
69- config_data [ 'magento' ] [ 'currency' ] , #9
70- config_data [ 'magento' ] [ 'admin_user' ] , #9
71- config_data [ 'magento' ] [ 'admin_password' ] #10
66+ host_magento_dir #5
7267 ]
7368
7469 config . vm . provision "configure_environment" , type : "shell" do |s |
Original file line number Diff line number Diff line change 8282
8383# Generate XSD references for PHP Storm
8484php bin/magento dev:urn-catalog:generate /vagrant/.idea/misc.xml
85+ sed -i " s|${MAGENTO_ROOT} |${MAGENTO_ROOT_HOST} |g" " /vagrant/.idea/misc.xml"
8586
8687set +x
8788echo "
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ use_nfs_for_synced_folders=$1
77guest_magento_dir=$2
88magento_host_name=$3
99use_php7=$4
10+ host_magento_dir=$5
1011
1112vagrant_dir=" /vagrant"
1213
6970# Declare path to scripts supplied with vagrant and Magento
7071echo " export PATH=\$ PATH:${vagrant_dir} /scripts/guest:${guest_magento_dir} /bin" >> /etc/profile
7172echo " export MAGENTO_ROOT=${guest_magento_dir} " >> /etc/profile
73+ echo " export MAGENTO_ROOT_HOST=${host_magento_dir} " >> /etc/profile
7274
7375# Set permissions to allow Magento codebase upload by Vagrant provision script
7476if [ ${use_nfs_for_synced_folders} -eq 0 ]; then
You can’t perform that action at this time.
0 commit comments