diff options
-rw-r--r-- | app.js | 2 | ||||
-rw-r--r-- | views/head.html | 15 |
2 files changed, 9 insertions, 8 deletions
@@ -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 @@ <meta charset="UTF-8"> <title><%= title %></title> <!-- Bootstrap core CSS --> -<link rel="stylesheet" href="../css/bootstrap.min-3.3.6.css"> +<link rel="stylesheet" href="/static/css/bootstrap.min-3.3.6.css"> <!-- Custom styles for this template --> -<link href="../css/customstylesheet.css" rel="stylesheet"> +<link href="/static/css/customstylesheet.css" rel="stylesheet"> <!--Favicon--> -<link rel="shortcut icon" href="../images/favicon.ico" /> +<link rel="shortcut icon" href="/static/images/favicon.ico" /> -<script src="/socket.io/socket.io.js"></script> -<script src="../js/plotly-latest.min.js"></script> +<!-- <script src="/socket.io/socket.io.js"></script> --> +<script src="https://cdn.socket.io/socket.io-1.4.5.js"></script> +<script src="/static/js/plotly-latest.min.js"></script> <!-- Bootstrap JQuery --> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script> -<script>window.jQuery || document.write('<script src="../js/jquery.min.js"><\/script>')</script> +<script>window.jQuery || document.write('<script src="/static/js/jquery.min.js"><\/script>')</script> <!-- Bootstrap core JS --> -<script src="../js/bootstrap.min-3.3.6.js"></script>
\ No newline at end of file +<script src="/static/js/bootstrap.min-3.3.6.js"></script>
\ No newline at end of file |