FOOK
This commit is contained in:
parent
251b9a72c9
commit
f330e625b0
8
index.js
8
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);});
|
Loading…
Reference in New Issue