From 54519b72f93edfa1d46645a1cdebf9f284e22ccc Mon Sep 17 00:00:00 2001 From: steveperry-53 Date: Wed, 11 Jan 2017 14:31:32 -0800 Subject: [PATCH] Fix code and fix link to code. --- docs/tutorials/stateless-application/hello-minikube.md | 2 +- docs/tutorials/stateless-application/server.js | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/tutorials/stateless-application/hello-minikube.md b/docs/tutorials/stateless-application/hello-minikube.md index 54697ef9c1..42853a62cc 100644 --- a/docs/tutorials/stateless-application/hello-minikube.md +++ b/docs/tutorials/stateless-application/hello-minikube.md @@ -99,7 +99,7 @@ kubectl cluster-info The next step is to write the application. Save this code in a folder named `hellonode` with the filename `server.js`: -{% include code.html language="js" file="server.js" ghlink="docs/tutorials/stateless-application/server.js" %} +{% include code.html language="js" file="server.js" ghlink="/docs/tutorials/stateless-application/server.js" %} Run your application: diff --git a/docs/tutorials/stateless-application/server.js b/docs/tutorials/stateless-application/server.js index 4a31299886..76345a17d8 100644 --- a/docs/tutorials/stateless-application/server.js +++ b/docs/tutorials/stateless-application/server.js @@ -1,3 +1,5 @@ +var http = require('http'); + var handleRequest = function(request, response) { console.log('Received request for URL: ' + request.url); response.writeHead(200);