From 4596daae28642da1499b92714d2354f1965c7dff Mon Sep 17 00:00:00 2001 From: Futago-za Ryuu Date: Thu, 6 Sep 2018 08:32:55 +0100 Subject: [PATCH] Add config for Zeit Now --- now.json | 13 +++++++++++++ server.js | 4 ++-- 2 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 now.json diff --git a/now.json b/now.json new file mode 100644 index 0000000..6f5ae8f --- /dev/null +++ b/now.json @@ -0,0 +1,13 @@ +{ + "name": "pegjs-website", + "type": "npm", + "alias": [ + "www.pegjs.org", + "pegjs.org", + "pegjs.now.sh" + ], + "files": [ + "website", + "server.js" + ] +} diff --git a/server.js b/server.js index 6576bcf..2293c50 100644 --- a/server.js +++ b/server.js @@ -74,8 +74,8 @@ app.get( "/download", ( req, res ) => { /* Main */ -app.listen( 3000, () => { +app.listen( 80, () => { - console.log( "PEG.js website running at http://localhost:3000/ in %s mode...", app.get( "env" ) ); + console.log( "The PEG.js website is running on the localhost in %s mode...", app.get( "env" ) ); } );