Introduction
Introduction Statistics Contact Development Disclaimer Help
use the config for updating - seedlinux - Torrent indexing tool opensource torr…
Log
Files
Refs
README
---
commit c3afa3ff4c0b42f15bc7c579163866fec20cebbd
parent 1e7b2f1808900a53910ced52a7b2abfea83f5186
Author: Jay Scott <[email protected]>
Date: Wed, 5 Jul 2017 16:21:03 +0100
use the config for updating
Diffstat:
M bin/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);
You are viewing proxied material from jay.scot. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.