summaryrefslogtreecommitdiff
path: root/app.js
diff options
context:
space:
mode:
Diffstat (limited to 'app.js')
-rw-r--r--app.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/app.js b/app.js
index c0ad4f2..aa79f62 100644
--- a/app.js
+++ b/app.js
@@ -2,6 +2,8 @@
const Koa = require('koa');
const { koaBody } = require('koa-body');
+require('dotenv').config();
+
const app = new Koa();
// middleware
@@ -13,4 +15,5 @@ let paths = require('./paths.js');
// use the routes
app.use(paths.routes());
-app.listen(3000);
+// app.listen(3000);
+app.listen(process.env.APP_PORT);