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 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app.js') 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); -- cgit