Right now, the app always runs in debug mode and is always on port 5000. The app has to work on deploy_mode and run on a port assigned by the OS.