Browse Source

http-server -> servez

Gregg Tavares 5 years ago
parent
commit
9e0bb74e23

BIN
threejs/lessons/resources/http-server-response.png


BIN
threejs/lessons/resources/servez-response.png


+ 6 - 6
threejs/lessons/ru/threejs-setup.md

@@ -32,27 +32,27 @@ TOC: Настройка
 Загрузите его, установите его, затем откройте окно командной строки / консоли / терминала. 
 Если вы работаете в Windows, установщик добавит специальную "Node Command Prompt", используйте ее.
 
-Затем установите [`http-server`](https://github.com/indexzero/http-server) набрав в консоли
+Затем установите [`servez`](https://github.com/greggman/servez-cli) набрав в консоли
 
-    npm -g install http-server
+    npm -g install servez
 
 Если вы используете OSX
 
-    sudo npm -g install http-server
+    sudo npm -g install servez
 
 Как только вы сделали это, напишите
 
-    http-server path/to/folder/where/you/unzipped/files
+    servez path/to/folder/where/you/unzipped/files
 
 Это должно вывести что-то вроде
 
-{{{image url="resources/http-server-response.png" }}}
+{{{image url="resources/servez-response.png" }}}
 
 Затем в вашем браузере перейдите на [`http://localhost:8080/`](http://localhost:8080/).
 
 Если вы не укажете путь, тогда http-сервер будет хостить(размещать на сервере) текущую папку.
 
 Если какой-либо из этих вариантов вам не по вкусу,
-[есть много других простых серверов на выбор](https://stackoverflow.com/questions/12905426/what-is-a-faster-alternative-to-pythons-http-server-or-simplehttpserver).
+[есть много других простых серверов на выбор](https://stackoverflow.com/questions/12905426/what-is-a-faster-alternative-to-pythons-servez-or-simplehttpserver).
 
 Теперь, когда вы настроили сервер, мы можем перейти к [текстурам](threejs-textures.html).

+ 8 - 8
threejs/lessons/threejs-setup.md

@@ -31,32 +31,32 @@ To stop serving pick stop or quit Servez.
 If you prefer the command line (I do), another way is to use [node.js](https://nodejs.org).
 Download it, install it, then open a command prompt / console / terminal window. If you're on Windows the installer will add a special "Node Command Prompt" so use that.
 
-Then install the [`http-server`](https://github.com/indexzero/http-server) by typing
+Then install the [`servez`](https://github.com/greggman/servez-cli) by typing
 
-    npm -g install http-server
+    npm -g install servez
 
 If you're on OSX use
 
-    sudo npm -g install http-server
+    sudo npm -g install servez
 
 Once you've done that type
 
-    http-server path/to/folder/where/you/unzipped/files
+    servez path/to/folder/where/you/unzipped/files
 
 Or if you're like me
 
     cd path/to/folder/where/you/unzipped/files
-    http-server
+    servez
 
 It should print something like
 
-{{{image url="resources/http-server-response.png" }}}
+{{{image url="resources/servez-response.png" }}}
 
 Then in your browser go to [`http://localhost:8080/`](http://localhost:8080/).
 
-If you don't specify a path then http-server will serve the current folder.
+If you don't specify a path then servez will serve the current folder.
 
 If either of those options are not to your liking
-[there are many other simple servers to choose from](https://stackoverflow.com/questions/12905426/what-is-a-faster-alternative-to-pythons-http-server-or-simplehttpserver).
+[there are many other simple servers to choose from](https://stackoverflow.com/questions/12905426/what-is-a-faster-alternative-to-pythons-servez-or-simplehttpserver).
 
 Now that you have a server setup we can move on to [textures](threejs-textures.html).

+ 1 - 1
threejs/lessons/threejs-webvr.md

@@ -36,7 +36,7 @@ to itself so ignore anything that starts with `127.`.
 On your VR device, first make sure it's connected to the same WiFi as your
 computer. Then, open your browser and type in `http://<ipaddress:port>`. Which
 port depends on what server you're running. If you're using
-[Servez](https://greggman.github.io/servez) or the http-server from node.js then
+[Servez](https://greggman.github.io/servez) or the servez from node.js then
 the port will likely be 8080.
 
 On my computer as I write this article its IP address is `192.168.100.78` and my

+ 7 - 7
threejs/lessons/zh_cn/threejs-setup.md

@@ -31,27 +31,27 @@ web服务很容易设置和使用。
 如果你更喜欢命令行(我就是),另一种方法是使用[node.js](https://nodejs.org)。
 下载,安装,然后打开一个command prompt / console / terminal窗口。 如果你是在Windows上安装程序会添加一个特别的"Node Command Prompt"所以使用它。
 
-然后安装[`http-server`](https://github.com/indexzero/http-server)通过输入
+然后安装[`servez`](https://github.com/greggman/servez-cli)通过输入
 
-    npm -g install http-server
+    npm -g install servez
 
 如果你是OSX使用
 
-    sudo npm -g install http-server
+    sudo npm -g install servez
 
 一旦你输入完成
 
-    http-server path/to/folder/where/you/unzipped/files
+    servez path/to/folder/where/you/unzipped/files
 
 它会打印像这样的东西
 
-{{{image url="resources/http-server-response.png" }}}
+{{{image url="resources/servez-response.png" }}}
 
 然后在你的浏览器中打开[`http://localhost:8080/`](http://localhost:8080/)。
 
-如果你没有指定路径那么http-server会使用当前的文件夹。
+如果你没有指定路径那么servez会使用当前的文件夹。
 
 如果这些都不是你的选择
-[这里有很多其他的服务可供选择](https://stackoverflow.com/questions/12905426/what-is-a-faster-alternative-to-pythons-http-server-or-simplehttpserver)。
+[这里有很多其他的服务可供选择](https://stackoverflow.com/questions/12905426/what-is-a-faster-alternative-to-pythons-servez-or-simplehttpserver)。
 
 现在你有了服务我们可以移步到[纹理](threejs-textures.html).