diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2017-12-08 03:22:10 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2017-12-08 03:22:10 +0100 |
| commit | d57f244f5bf0ab7e86446d0088079fbd008d13df (patch) | |
| tree | 538a710e62effd118617728ca86ba18bcb3ded9d /bucky | |
| parent | 192abb9db60f95968953b515ce18700c6b2da090 (diff) | |
building search index w/ old perl lib
Diffstat (limited to 'bucky')
| -rw-r--r-- | bucky/app/index.js | 2 | ||||
| -rw-r--r-- | bucky/app/router.js | 10 | ||||
| -rw-r--r-- | bucky/search/search.js | 2 |
3 files changed, 7 insertions, 7 deletions
diff --git a/bucky/app/index.js b/bucky/app/index.js index 03c5593..1231914 100644 --- a/bucky/app/index.js +++ b/bucky/app/index.js @@ -27,7 +27,7 @@ site.init = function(){ app.set('views', path.join(__dirname, '../../views')) app.use(express.static(path.join(__dirname, '../../public'))) - app.use(favicon(__dirname + '../../public/favicon.ico')) + app.use(favicon(__dirname + '../../../public/favicon.ico')) app.use(bodyParser.json()) app.use(bodyParser.urlencoded({ extended: false })) app.use( multer({ dest:'./uploads/' }).single("file") ) diff --git a/bucky/app/router.js b/bucky/app/router.js index a87e1ec..fde4278 100644 --- a/bucky/app/router.js +++ b/bucky/app/router.js @@ -1,9 +1,9 @@ -var auth = require('./auth') -var middleware = require('./middleware') -var fortune = require('./fortune') +var auth = require('../util/auth') +var middleware = require('../util/middleware') +var fortune = require('../db/fortune') var bucky = require('./bucky') -var db = require('./db') -var util = require('./util') +var db = require('../db') +var util = require('../util/util') var search = require('../search/middleware') module.exports = function(app){ diff --git a/bucky/search/search.js b/bucky/search/search.js index afa9609..d6dd8f5 100644 --- a/bucky/search/search.js +++ b/bucky/search/search.js @@ -3,7 +3,7 @@ var STOPWORDS = require('./stopwords') var bdb_lib = require('berkeleydb') var bdb = new bdb_lib.Db() -bdb.open('search.db') +bdb.open('./search.db') var wordRegexp = new RegExp("(\W+)"); var wordBoundaryRegexp = new RegExp("\W"); |
