aboutsummaryrefslogtreecommitdiff
path: root/src/index.js
diff options
context:
space:
mode:
authorAkshay <[email protected]>2024-08-30 07:11:39 +0100
committerAkshay <[email protected]>2024-08-30 07:11:39 +0100
commitc2326bc381923d91d8becc58fc52cd984c5014d1 (patch)
tree3968484ca7cf0fb09a000c1ca3db592c0208b1b2 /src/index.js
parent5e765cc96b89862dd8091112b79c246ef6c0264e (diff)
add nix module
Diffstat (limited to 'src/index.js')
-rw-r--r--src/index.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/index.js b/src/index.js
index a1b9967..099ee4d 100644
--- a/src/index.js
+++ b/src/index.js
@@ -11,7 +11,8 @@ app.set('view engine', 'pug');
11app.use(express.static(path.join(__dirname, 'public'))); 11app.use(express.static(path.join(__dirname, 'public')));
12app.use('/', routes); 12app.use('/', routes);
13 13
14const server = app.listen(3000, () => { 14const port = process.env.READIT_PORT;
15const server = app.listen(port?port:3000, () => {
15 console.log(`started on ${server.address().port}`); 16 console.log(`started on ${server.address().port}`);
16}); 17});
17 18