Add blacklist env
This commit is contained in:
parent
c17d22b630
commit
fad216c968
9 changed files with 313 additions and 208 deletions
4
index.js
4
index.js
|
|
@ -1,10 +1,12 @@
|
|||
// development endpoint (use ngrok)
|
||||
|
||||
require('dotenv').config()
|
||||
const http = require('http');
|
||||
const listener = require('./src/client');
|
||||
|
||||
|
||||
const server = http.createServer(listener);
|
||||
const port = (process.argv.length >= 2 ? parseInt(process.argv[2]) : 0) || 3000;
|
||||
const port = parseInt(process.env.HTTP_PORT || "3000");
|
||||
|
||||
if (require.main === module) {
|
||||
server.listen(port, function () {
|
||||
|
|
|
|||
Loading…
Add table
editor.link_modal.header
Reference in a new issue