summaryrefslogtreecommitdiffstats
path: root/backend/src/index.js
diff options
context:
space:
mode:
authorWes Bos <wesbos@gmail.com>2018-03-20 14:48:34 -0400
committerWes Bos <wesbos@gmail.com>2018-03-20 14:48:34 -0400
commit92f612a995c54f7423bd2b760fb1a324044693a6 (patch)
tree0350ceb82c0539bcafdded837c435ee68d6257ef /backend/src/index.js
parent217cfed064989816fbffcb1e285134c8e03ef5c7 (diff)
Starting testing
Diffstat (limited to 'backend/src/index.js')
-rw-r--r--backend/src/index.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/backend/src/index.js b/backend/src/index.js
index 3630b74..522fcfe 100644
--- a/backend/src/index.js
+++ b/backend/src/index.js
@@ -30,7 +30,9 @@ const server = new GraphQLServer({
// next();
// });
-server.start(() => console.log('Server is running on http://localhost:4000'));
+server.start(deets => {
+ console.log(`Server is running on http://localhost:${deets.port}`);
+});
// overwrite console.log
const chalk = require('chalk');