from suddendev import create_app, socketio


app = create_app()
socketio.run(app)

import os
from suddendev import create_app, socketio

app = create_app()
port = int(os.environ.get("PORT", 5000))
socketio.run(app, host='0.0.0.0', port=port)

Read Heroku port envvar and use if given.
[NG] Read Heroku port envvar and use if given.

+ import os
  from suddendev import create_app, socketio
  
+ app = create_app()
+ port = int(os.environ.get("PORT", 5000))
+ socketio.run(app, host='0.0.0.0', port=port)
  
- app = create_app()
- socketio.run(app)
- 
Read Heroku port envvar and use if given.
## Code Before:
from suddendev import create_app, socketio


app = create_app()
socketio.run(app)

## Instruction:
Read Heroku port envvar and use if given.
## Code After:
import os
from suddendev import create_app, socketio

app = create_app()
port = int(os.environ.get("PORT", 5000))
socketio.run(app, host='0.0.0.0', port=port)
