github.com/hazelops/ize@v1.1.12-0.20230915191306-97d7c0e48f11/examples/ecs-apps-monorepo/apps/squibby/app.py (about)

     1  # flask_web/app.py
     2  import os
     3  import ddtrace
     4  from flask import Flask
     5  from ddtrace import tracer
     6  
     7  app = Flask(__name__)
     8  api_key = os.getenv('EXAMPLE_API_KEY')
     9  secret_key = os.getenv('EXAMPLE_SECRET')
    10  text = '👺 This is api key: ' + api_key + '! This is secret: '+ secret_key + ' 👺'
    11  @app.route('/')
    12  def hello_world():
    13      return (text)
    14  
    15  if __name__ == '__main__':
    16      app.run(debug=True, host='0.0.0.0', port=3000)