Fix running serving files in the dev server
authorRaphaël Jakse <raphael.trivabble@jakse.fr>
Sun, 3 May 2020 12:46:51 +0000 (14:46 +0200)
committerRaphaël Jakse <raphael.trivabble@jakse.fr>
Sun, 3 May 2020 12:46:51 +0000 (14:46 +0200)
server/trivabble-server.js

index 42bb38b3dde0733eefb421bc32d23243e6c781d8..9983fdcae14c7cc78c978c0316049fecade7195f 100644 (file)
@@ -978,7 +978,7 @@ function handleRequest(request, response) {
 
             debuglog("Serving " + request.url);
 
-            fs.exists("public/" + request.url, function (exists) {
+            fs.exists("../public/" + request.url, function (exists) {
                 if (exists) {
                     fs.readFile("public/" + request.url, function(err, contents) {
                         if (err) {