Skip to content
This repository was archived by the owner on Jan 6, 2018. It is now read-only.

Commit b43d153

Browse files
committed
Update
1 parent cebfcb3 commit b43d153

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Vagrantfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,17 +62,18 @@ Vagrant.configure("2") do |config|
6262
6363
vhost_run() {
6464
local server_name="${1}"
65+
local ip_address="${2}"
6566
6667
sed -i "s/SERVER_NAME=dev/SERVER_NAME=${server_name}/" /opt/vhost.yml
67-
sed -i "s/HOSTS_IP_ADDRESS=127.0.0.1/HOSTS_IP_ADDRESS=${IP_ADDRESS}/" /opt/vhost.yml
68+
sed -i "s/HOSTS_IP_ADDRESS=192.18.11.89/HOSTS_IP_ADDRESS=${ip_address}/" /opt/vhost.yml
6869
6970
docker-compose -f /opt/vhost.yml kill
7071
docker-compose -f /opt/vhost.yml rm -f
7172
docker-compose -f /opt/vhost.yml up -d
7273
}
7374
7475
swap_resize "${MEMORY_SIZE}"
75-
vhost_run "${SERVER_NAME}"
76+
vhost_run "${SERVER_NAME}" "${IP_ADDRESS}"
7677
SHELL
7778

7879
s.args = [

0 commit comments

Comments
 (0)