From 3e173dca27a89644c35a9c7176f713c288d20960 Mon Sep 17 00:00:00 2001 From: Amir Hossein Sojoodi Date: Sat, 12 Oct 2019 14:14:59 +0330 Subject: [PATCH 1/2] Doc: Update README, add instructions on config the vagrant --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index 28e1b6f..cfb217c 100644 --- a/README.md +++ b/README.md @@ -36,6 +36,18 @@ Build 'virtualbox-iso' errored: ISO download failed. * Run `vagrant up` * Run `vagrant ssh` to connect to the server +After the second step in which the box is created, there may be a chance that there is not a Vagrantfile create. If yes, do the following: +* Go to the vagrant data directory (in windows: `~\.vagrant.d\boxes\`) +* Find your desired box and change your directory to it. (In this case: `~\.vagrant.d\boxes\devops-appserver\0\virtualbox`) +* If there is already a Vagrantfile there, update it the missing following lines: +``` +Vagrant.configure("2") do |config| + config.vm.box = "devops-appserver" + config.vm.network "forwarded_port", guest: 80, host: 8080 + config.vm.synced_folder "../../../../devops-kungfu", "/home/vagrant/devops-kungfu", create: true +end +``` +* Then you are good to go with `vagrant up` and then `vagrant ssh`. ## Part II: Cloning, developing, and running the web application From 386311c7b4af36fa8511fc817f03421b5be784e1 Mon Sep 17 00:00:00 2001 From: Amir Hossein Sojoodi Date: Sat, 12 Oct 2019 14:19:10 +0330 Subject: [PATCH 2/2] Doc: correct some misspellings --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index cfb217c..2227d17 100644 --- a/README.md +++ b/README.md @@ -36,10 +36,10 @@ Build 'virtualbox-iso' errored: ISO download failed. * Run `vagrant up` * Run `vagrant ssh` to connect to the server -After the second step in which the box is created, there may be a chance that there is not a Vagrantfile create. If yes, do the following: -* Go to the vagrant data directory (in windows: `~\.vagrant.d\boxes\`) -* Find your desired box and change your directory to it. (In this case: `~\.vagrant.d\boxes\devops-appserver\0\virtualbox`) -* If there is already a Vagrantfile there, update it the missing following lines: +After the second step in which the box is created, there may be a chance that there is not a Vagrantfile created. If yes, do the following: +* Go to the default vagrant data directory (in windows: `~\.vagrant.d\boxes\`) +* Find your desired box and change your current directory to it. (In this case: `~\.vagrant.d\boxes\devops-appserver\0\virtualbox`) +* If there is already a Vagrantfile there, update it with the missing following lines: ``` Vagrant.configure("2") do |config| config.vm.box = "devops-appserver" @@ -47,7 +47,7 @@ Vagrant.configure("2") do |config| config.vm.synced_folder "../../../../devops-kungfu", "/home/vagrant/devops-kungfu", create: true end ``` -* Then you are good to go with `vagrant up` and then `vagrant ssh`. +* Then save the file, and now you are good to go with `vagrant up` and then `vagrant ssh`. ## Part II: Cloning, developing, and running the web application