[Groonga-commit] droonga/droonga.org at 4f04cdd [gh-pages] Use example IP address

Back to archive index

Yoji Shidara null+****@clear*****
Thu Aug 29 13:02:45 JST 2013


Yoji Shidara	2013-08-29 13:02:45 +0900 (Thu, 29 Aug 2013)

  New Revision: 4f04cddd38edad78fcdecdce7ce271b87a6118c5
  https://github.com/droonga/droonga.org/commit/4f04cddd38edad78fcdecdce7ce271b87a6118c5

  Merged 5fadeb3: Merge branch 'setup-on-cloud' into gh-pages

  Message:
    Use example IP address

  Modified files:
    tutorial/index.md

  Modified: tutorial/index.md (+5 -5)
===================================================================
--- tutorial/index.md    2013-08-29 12:59:38 +0900 (2ff045a)
+++ tutorial/index.md    2013-08-29 13:02:45 +0900 (78f0638)
@@ -399,11 +399,11 @@ frontend.js:
       res.sendfile(__dirname + '/index.html');
     });
 
-これで、`http://localhost:3000/` をリクエストすると、先の `index.html` が返されるようになります。
+Web ブラウザにサーバの IP アドレスを入れて、リクエストを送信してみましょう。
+以降、サーバの IP アドレスが `192.0.2.1` であったとします。
+`http://192.0.2.1:3000/` をリクエストすると、先の `index.html` が返されるようになります。
 
-TODO: vagrant で VM の外で起動したWebブラウザから中のサーバを 192.168.33.10 として叩けるようにする方法を書く (チュートリアル全体を通して Vagrant じゃないほうが簡単な気がしてきた...)
-
-Webブラウザから `http://192.168.33.10:3000` を開いてみてください。以下のように検索結果が alert で表示されれば成功です。
+Webブラウザから `http://192.0.2.1:3000` を開いてみてください。以下のように検索結果が alert で表示されれば成功です。
 
     {"result":{"count":36,"records":[["根津のたいやき"],["たい焼 カタオカ"],["そばたいやき空"],["車"],["広瀬屋"],["さざれ"],["おめで鯛焼き本舗錦糸町東急店"],["尾長屋 錦糸町店"],["たいやき工房白家 阿佐ヶ谷店"],["たいやき本舗 藤家 阿佐ヶ谷店"]],"startTime":"2013-08-28T08:42:25+00:00","elapsedTime":0.0002415180206298828}}
 
@@ -444,7 +444,7 @@ Web ブラウザから Socket.IO 経由でリクエストが frontend に送信
       </body>
     </html>
 
-ブラウザで再度 `http://192.168.33.10:3000` を開くと、以下のような検索結果が alert で表示されます。
+ブラウザで再度 `http://192.0.2.1:3000` を開くと、以下のような検索結果が alert で表示されます。
 
     {"result":{"count":2,"records":[["たいやき工房白家 阿佐ヶ谷店"],["たいやき本舗 藤家 阿佐ヶ谷店"]],"startTime":"2013-08-28T09:23:14+00:00","elapsedTime":0.0030717849731445312}}
 
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index