From f54f5d58a5818e82284ba38e5cb1af4b629ba456 Mon Sep 17 00:00:00 2001 From: fahimkhan Date: Fri, 30 Sep 2016 16:59:27 +0530 Subject: Make static url proper for server --- app.js | 2 +- views/head.html | 15 ++++++++------- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/app.js b/app.js index 11f5228..5682cbc 100644 --- a/app.js +++ b/app.js @@ -23,7 +23,7 @@ app.engine('html',ejs.renderFile); //Set Static public folder -app.use(express.static(path.join(__dirname,'public'))); +app.use('/static',express.static(path.join(__dirname,'public'))); //Set Port to run the app app.set('port',process.env.PORT||3000); diff --git a/views/head.html b/views/head.html index 04a091c..0512ceb 100644 --- a/views/head.html +++ b/views/head.html @@ -2,20 +2,21 @@