Skip to content

Instantly share code, notes, and snippets.

@lmullen
Created September 3, 2014 18:21
Show Gist options
  • Save lmullen/c2ffb4442adc02bef7a1 to your computer and use it in GitHub Desktop.
Save lmullen/c2ffb4442adc02bef7a1 to your computer and use it in GitHub Desktop.
Very minimal HTML for JavaScript
#!/usr/bin/env node
console.log("Hello world")
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<script src="http://d3js.org/d3.v3.min.js" charset="utf-8"></script>
</head>
<body>
</body>
<script src="script.js"></script>
</html>
serve :
ruby -run -e httpd . -p 4000
console.log("Hello world")
@juanma386
Copy link

juanma386 commented Nov 17, 2018

Hi! your proyect print error:
[2018-11-17 16:00:50] INFO WEBrick 1.3.1 [2018-11-17 16:00:50] INFO ruby 2.3.3 (2016-11-21) [x86_64-linux-gnu] [2018-11-17 16:00:50] INFO WEBrick::HTTPServer#start: pid=24455 port=4000 [2018-11-17 16:01:08] ERROR/app/' not found.
181.230.100.130 - - [17/Nov/2018:16:01:08 CET] "GET /app/ HTTP/1.1" 404 289

  • -> /app/
    [2018-11-17 16:01:08] ERROR /favicon.ico' not found. 181.230.100.130 - - [17/Nov/2018:16:01:08 CET] "GET /favicon.ico HTTP/1.1" 404 296 http://localhost:4000/app/ -> /favicon.ico

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment