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

Commit ff84be6

Browse files
author
Alexander Paliarush
committed
Refactoring
1 parent 07d06e2 commit ff84be6

File tree

6 files changed

+6
-7
lines changed

6 files changed

+6
-7
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
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)

Vagrantfile

+1-6
Original file line numberDiff line numberDiff 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|

docs/images/release_badge.png

2.05 KB
Loading

docs/images/release_badge.svg

+1
Loading

scripts/guest/m-reinstall

+1
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ fi
8282

8383
# Generate XSD references for PHP Storm
8484
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"
8586

8687
set +x
8788
echo "

scripts/provision/configure_environment.sh

+2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ use_nfs_for_synced_folders=$1
77
guest_magento_dir=$2
88
magento_host_name=$3
99
use_php7=$4
10+
host_magento_dir=$5
1011

1112
vagrant_dir="/vagrant"
1213

@@ -69,6 +70,7 @@ fi
6970
# Declare path to scripts supplied with vagrant and Magento
7071
echo "export PATH=\$PATH:${vagrant_dir}/scripts/guest:${guest_magento_dir}/bin" >> /etc/profile
7172
echo "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
7476
if [ ${use_nfs_for_synced_folders} -eq 0 ]; then

0 commit comments

Comments
 (0)