From f330e625b0fb5e07a5024aefa54a364d89b45ba1 Mon Sep 17 00:00:00 2001 From: ledlamp Date: Fri, 11 May 2018 23:41:49 -0700 Subject: [PATCH] FOOK --- Procfile | 2 +- index.js | 8 +------- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/Procfile b/Procfile index 9f8263b..f2d1f0b 100644 --- a/Procfile +++ b/Procfile @@ -1 +1 @@ -worker: node src/main.js +worker: node index.js diff --git a/index.js b/index.js index f113220..9af36e1 100644 --- a/index.js +++ b/index.js @@ -1,4 +1,3 @@ - (async function(){ global.dbClient = new (require('pg').Client)({ connectionString: process.env.DATABASE_URL, @@ -6,11 +5,6 @@ }); await dbClient.connect(); - var data = (await dbClient.query("SELECT content FROM files WHERE name = 'files.zip'")).rows[0].content; - var buff = Buffer.from(data, 'base64'); - await (require('decompress'))(buff, 'files'); - - require('./files/src/main.js'); + require('./src/main'); - global['files.zip'] = buff; })().catch(error => {console.error(error.stack); process.exit(1);}); \ No newline at end of file