You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: vagrant/README.md
+32-15Lines changed: 32 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -1,21 +1,38 @@
1
-
# Deploy devdocs locally
1
+
# Overview of this Vagrant project
2
2
3
-
You can deploy devdocs site locally using this vagrant project. Vagrant enables you to create a virtual machine with all the software needed to build the devdocs project on a virtual machine. The generated web-site is accessible through browser from your machine as localhost using IP: **127.0.0.1:4000** by default.
3
+
You can deploy devdocs site locally using this vagrant project. Vagrant will do the following:
4
+
5
+
1. Create a virtual machine with Ubuntu
6
+
7
+
2. Install all the software needed
8
+
9
+
3. Clone `devdocs` repo to the virtual machine in a shared folder (on VM: `/vagrant/devdocs`, on your machine: in the `vagrant/devdocs` directory)
10
+
11
+
4. Run Jekyll to generate `magento.devdocs` website locally
12
+
13
+
The generated web-site is accessible through browser from your machine as localhost using IP: **127.0.0.1:4000** by default.
4
14
5
15
## Setup
6
16
7
-
1. Download or clone [devdocs repository](https://github.com/magento/devdocs).
1. In your terminal, open the downloaded directory `vagrant` on your host. (The directory where this README is located.)
26
+
27
+
2. Enter `vagrant up`.
10
28
11
-
## Create VM and environment
29
+
3. Wait for some time while vagrant is creating a virtual machine, sets up environment, and runs Jekyll. You'll se the following test in your terminal:
12
30
13
-
1. Using a terminal, change a directory to `devdocs/vagrant` on your host. (The directory where this README is located.)
14
-
Example: `cd ~/devdocs/vagrant`
15
-
2. Enter in your terminal `vagrant up`
16
-
3. Wait for some time until vagrant created a virtual machine with ready-to-go environment.
31
+
Configuration file: /vagrant/devdocs/_config.yml
32
+
Server address: http://0.0.0.0:4000//
33
+
Server running... press ctrl-c to stop.
17
34
18
-
## Browse devdocs site
35
+
## Browse magento.devdocs site locally
19
36
20
37
In your browser, visit http://127.0.0.1:4000/
21
38
@@ -34,15 +51,15 @@ All commands must be run in the terminal from the directory that contains `Vagra
34
51
35
52
### Scripts
36
53
37
-
- Stop Jekyll server. (Stops devdocs site generation.)
54
+
- Stop Jekyll server. (Stops magento.devdocs site generation.)
# Set a provisioner and file with provision to automate software installation.
23
+
config.vm.provision:shell,path: 'bootstrap.sh'
24
+
25
+
# Jekyll uses the 4000 port by default. This declaration forwards output from the 4000 port on VM to the port on your host that is set in Customization parameters as HOST_PORT on top of the file.
0 commit comments