From da48fc4cab0e0a936d509daaa0fe15f4a133c1c7 Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Wed, 21 Mar 2018 12:42:31 +0100 Subject: [PATCH] use `wt serve` for local development --- package.json | 2 +- webtask-medium.js | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/package.json b/package.json index 9fc937a..09a4075 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "version": "0.1.0", "private": true, "scripts": { - "start": "node webtask-medium.js", + "start": "wt serve webtask-medium.js", "test": "eslint ./{src,public}/**/*.js" }, "dependencies": { diff --git a/webtask-medium.js b/webtask-medium.js index c511f7c..195d97c 100644 --- a/webtask-medium.js +++ b/webtask-medium.js @@ -54,6 +54,4 @@ app.get('/:username/raw', (req, res) => { }) }) -app.listen(4000, () => console.log('Example app listening on localhost:4000!')) // eslint-disable-line no-console - module.exports = webtask.fromExpress(app)