From 5b36e3cacd38ea5efb701b3c670b6a434eb58bba Mon Sep 17 00:00:00 2001
From: Ray Schamp <ray@scratch.mit.edu>
Date: Mon, 21 Nov 2016 14:25:08 -0500
Subject: [PATCH] Fix dev port number

scratch-www: 8333
scratch-api: 8491
scratch-gui: 8601

Clearly the port should be 8073 for scratch-vm.
---
 README.md         | 2 +-
 webpack.config.js | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/README.md b/README.md
index 51902d448..6e548805e 100644
--- a/README.md
+++ b/README.md
@@ -36,7 +36,7 @@ StartServerWindows.bat
 ```
 
 ## Playground
-To run the Playground, make sure the dev server's running and go to [http://localhost:8080/](http://localhost:8080/) - you will be directed to the playground, which demonstrates various tools and internal state.
+To run the Playground, make sure the dev server's running and go to [http://localhost:8073/](http://localhost:8073/) - you will be directed to the playground, which demonstrates various tools and internal state.
 
 ![VM Playground Screenshot](https://i.imgur.com/nOCNqEc.gif)
 
diff --git a/webpack.config.js b/webpack.config.js
index cb4b01e05..f276fb17b 100644
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -6,7 +6,8 @@ var webpack = require('webpack');
 var base = {
     devServer: {
         contentBase: path.resolve(__dirname, 'playground'),
-        host: '0.0.0.0'
+        host: '0.0.0.0',
+        port: process.env.PORT || 8073
     },
     module: {
         loaders: [