Skip to content

Commit c61d111

Browse files
SteveSteve
Steve
authored and
Steve
committed
Fix web demo
I'm still figuring out express, but it looks like the line `app.use('/', express.static(__dirname + '/static'));` automatically prepends "/static" to all URL paths so the "/static" that's currently in the URLs is incorrect.
1 parent 52ab1cf commit c61d111

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

web/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ Instructions:
22

33
1. Run ```npm install``` in this dir
44
2. Run ```node app``` to start a webserver on port 3000
5-
3. Browse to http://localhost:3000/static/test.html
5+
3. Browse to http://localhost:3000/test.html
66

web/static/test.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
<html>
33
<head>
44
<script src="http://code.jquery.com/jquery-1.10.1.min.js"></script>
5-
<script type="text/javascript" src="/static/spectrum/spectrum.js"></script>
6-
<link rel='stylesheet' href='/static/spectrum/spectrum.css' />
5+
<script type="text/javascript" src="/spectrum/spectrum.js"></script>
6+
<link rel='stylesheet' href='/spectrum/spectrum.css' />
77
</head>
88
<body>
99
<div id="bulb1"></div>

0 commit comments

Comments
 (0)