8484 border-radius: 20px;
8585 font-weight: bold;
8686 }
87+ .demo-value {
88+ display: inline-block;
89+ padding: 5px 15px;
90+ background: #FF6B35;
91+ border-radius: 20px;
92+ font-weight: bold;
93+ color: white;
94+ }
8795 </style>
8896</head>
8997<body>
94102 <p>Status: <span class="status">Running</span></p>
95103 <p>Timestamp: {{ timestamp }}</p>
96104 <p>Environment: {{ environment }}</p>
105+ <p>Demo Value: <span class="demo-value">{{ demo_value }}</span></p>
97106 </div>
98107
99108 <div class="info-card">
114123 <li>Azure Container Registry integration</li>
115124 <li>Health check endpoints</li>
116125 <li>Environment configuration</li>
126+ <li>Environment variable display (DEMO_VALUE)</li>
117127 </ul>
118128 </div>
119129
130140@app .route ('/' )
131141def home ():
132142 """Main page with system information"""
143+ demo_value = os .environ .get ('DEMO_VALUE' , 'Not Set' )
133144 return render_template_string (HTML_TEMPLATE ,
134145 timestamp = datetime .now ().isoformat (),
135146 environment = os .environ .get ('FLASK_ENV' , 'production' ),
136147 hostname = socket .gethostname (),
137148 platform = f"{ platform .system ()} { platform .release ()} " ,
138149 python_version = platform .python_version (),
139- architecture = platform .machine ()
150+ architecture = platform .machine (),
151+ demo_value = demo_value
140152 )
141153
142154@app .route ('/health' )
@@ -160,7 +172,8 @@ def api_info():
160172 'python_implementation' : platform .python_implementation (),
161173 'uptime' : time .time (),
162174 'environment' : os .environ .get ('FLASK_ENV' , 'production' ),
163- 'port' : PORT
175+ 'port' : PORT ,
176+ 'demo_value' : os .environ .get ('DEMO_VALUE' , 'Not Set' )
164177 })
165178
166179@app .route ('/api/status' )
@@ -172,7 +185,8 @@ def api_status():
172185 'environment' : os .environ .get ('FLASK_ENV' , 'production' ),
173186 'version' : '1.0.0' ,
174187 'framework' : 'Flask' ,
175- 'language' : 'Python'
188+ 'language' : 'Python' ,
189+ 'demo_value' : os .environ .get ('DEMO_VALUE' , 'Not Set' )
176190 })
177191
178192@app .errorhandler (404 )
@@ -197,6 +211,7 @@ def internal_error(error):
197211 print (f"Starting Python Demo App on port { PORT } " )
198212 print (f"Environment: { os .environ .get ('FLASK_ENV' , 'production' )} " )
199213 print (f"Platform: { platform .system ()} { platform .release ()} " )
214+ print (f"Demo Value: { os .environ .get ('DEMO_VALUE' , 'Not Set' )} " )
200215
201216 # Run the Flask app
202217 app .run (
0 commit comments