seedlinux

find open source torrents and stats for people wishing to contribute bandwidth.
git clone git://git.beardyjay.co.uk/seedlinux
Log | Files | Refs | README | LICENSE

commit 20c70f3083060f98cf89654116f96d8fe9b4be46
parent c8f41b680f451c9863cfbb0be9cb6dd931f2ec98
Author: Jay Scott <jay@jayscott.co.uk>
Date:   Wed,  5 Jul 2017 16:21:03 +0100

use the config for updating

Diffstat:
Mbin/update | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/bin/update b/bin/update @@ -6,7 +6,9 @@ console.log('Updating Seeder and Leecher information'); const async = require('async'); const mongoose = require('mongoose'); const webtorrentHealth = require('webtorrent-health'); -const mongoDB = process.env.DB_URI; +const config = require('../app/config'); + +const mongoDB = config.dbURI; const Torrent = require('../models/torrent_model'); mongoose.connect(mongoDB);