Skip to content
Browse files

fix

  • Loading branch information...
1 parent 1b1e388 commit a207b2fe0725696b6d2b07bf43da9a77138f0648 @davsket committed
Showing with 4 additions and 2 deletions.
  1. +4 −2 web.js
View
6 web.js
@@ -6,8 +6,6 @@ var express = require('express'),
myPassword = 'le_password';
console.log(redis.get('hola',function(e,v){console.log(v+'++++++++++++++');}))
-app.use('/', express.static(__dirname + '/static'));
-// app.use(express.static(__dirname+'/static'));
app.use(express.bodyParser());
//Getting the application's email and password
@@ -19,6 +17,7 @@ redis.get('notesapp_email_password', function(err, value) {
});
app.post('/load/', function(request, response) {
+ console.log('----------------------');
var shortNote = '';
console.log(request.body.notes);
response.redirect('/');
@@ -60,6 +59,9 @@ app.post('/test', function(request, response) {
}
});
+app.use('/', express.static(__dirname + '/static'));
+// app.use(express.static(__dirname+'/static'));
+
var port = process.env.PORT || 3000;
app.listen(port, function() {
console.log("Listening on " + port);

0 comments on commit a207b2f

Please sign in to comment.
Something went wrong with that request. Please try again.