old_contents: from __future__ import unicode_literals, absolute_import
  
  import os
  from identity import app
  
  if __name__ == '__main__':
      port = int(os.environ.get('PORT', 5000))
      app.run(host='0.0.0.0',
              port=port,
              debug=os.environ.get('DEBUG', False))
  
new_contents: from __future__ import unicode_literals, absolute_import
  
  import os
  
  if os.environ.get('ENV') and os.path.exists(os.environ['ENV']):
      for line in open(os.environ['ENV']):
          var = line.strip().split('=')
          if len(var) == 2:
              os.environ[var[0]] = var[1]
  
  from identity import app
  
  if __name__ == '__main__':
      port = int(os.environ.get('PORT', 5000))
      app.run(host='0.0.0.0',
              port=port,
              debug=os.environ.get('DEBUG', False))
  
subject: Load env-vars from a .env file