This repository was archived by the owner on Oct 1, 2020. It is now read-only.
File tree 6 files changed +6
-7
lines changed
6 files changed +6
-7
lines changed Original file line number Diff line number Diff line change 2
2
3
3
[ ![ MIT License] ( https://img.shields.io/badge/license-MIT-blue.svg )] ( ./LICENSE )
4
4
[ ![ 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 )
6
6
7
7
* [ What You get] ( #what-you-get )
8
8
* [ 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|
63
63
guest_magento_dir , #2
64
64
magento_host_name , #3
65
65
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
72
67
]
73
68
74
69
config . vm . provision "configure_environment" , type : "shell" do |s |
Original file line number Diff line number Diff line change 82
82
83
83
# Generate XSD references for PHP Storm
84
84
php bin/magento dev:urn-catalog:generate /vagrant/.idea/misc.xml
85
+ sed -i " s|${MAGENTO_ROOT} |${MAGENTO_ROOT_HOST} |g" " /vagrant/.idea/misc.xml"
85
86
86
87
set +x
87
88
echo "
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ use_nfs_for_synced_folders=$1
7
7
guest_magento_dir=$2
8
8
magento_host_name=$3
9
9
use_php7=$4
10
+ host_magento_dir=$5
10
11
11
12
vagrant_dir=" /vagrant"
12
13
69
70
# Declare path to scripts supplied with vagrant and Magento
70
71
echo " export PATH=\$ PATH:${vagrant_dir} /scripts/guest:${guest_magento_dir} /bin" >> /etc/profile
71
72
echo " export MAGENTO_ROOT=${guest_magento_dir} " >> /etc/profile
73
+ echo " export MAGENTO_ROOT_HOST=${host_magento_dir} " >> /etc/profile
72
74
73
75
# Set permissions to allow Magento codebase upload by Vagrant provision script
74
76
if [ ${use_nfs_for_synced_folders} -eq 0 ]; then
You can’t perform that action at this time.
0 commit comments