Skip to content
This repository has been archived by the owner on Jun 27, 2019. It is now read-only.

Commit

Permalink
Fixes sessions errors and remove unused api reference
Browse files Browse the repository at this point in the history
- Change index to render only when fs.mkdir is concluded.
- Remove hljs reference since it is not used anymore.
- Change default retries when session-file-store cannot find read the session

Signed-off-by: Bruno Bottazzini <bruno.bottazzini@intel.com>
  • Loading branch information
Bruno Bottazzini committed Sep 15, 2015
1 parent c3a07bc commit fa24e97
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 3 additions & 1 deletion server/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@
secret: 'keepitsecret',
resave: true,
saveUninitialized: true,
store: new SessionStore
store: new SessionStore({
retries: 500
})
}));
var jConf = getConfigurationJson();

Expand Down
4 changes: 2 additions & 2 deletions server/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@
/* GET home page. */
router.get('/', function(req, res) {
fs.mkdir(tmp_dir(current_user(req)), function() {
console.log('Dir ' + tmp_dir(current_user(req)) + 'already exists!');
console.log('Accessed tmp dir -> ' + tmp_dir(current_user(req)));
res.render('index');
});
res.render('index');
});

/* Serve the Tree */
Expand Down
1 change: 0 additions & 1 deletion server/views/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,6 @@
<!-- -------------------------------------------------------------- !-->
<!-- SYSTEMD JOURNAL !-->
<!-- -------------------------------------------------------------- !-->
<script>hljs.initHighlightingOnLoad();</script>
<div id="sj" ng-controller="SystemdJournald" class="systemd-journald">

<!-- HEADER CONTROLS !-->
Expand Down

0 comments on commit fa24e97

Please sign in to comment.