Initial commit: Erika CV site with Nomad deployment
Some checks failed
Build and Deploy Erika CV / build-and-deploy (push) Failing after 10s

This commit is contained in:
Henrik Jess Nielsen
2026-04-19 17:09:21 +02:00
parent af246f5117
commit daf51d3025
7 changed files with 819 additions and 0 deletions

25
app.py Normal file
View File

@@ -0,0 +1,25 @@
from flask import Flask, render_template, jsonify
from datetime import datetime, timezone
import os
app = Flask(__name__)
BUILD_VERSION = os.getenv('BUILD_VERSION', 'unknown')
GIT_COMMIT = os.getenv('GIT_COMMIT', 'unknown')
@app.route('/')
def index():
return render_template('index.html')
@app.route('/health')
def health():
return jsonify({
'status': 'healthy',
'timestamp': datetime.now(timezone.utc).isoformat(),
'version': BUILD_VERSION,
'commit': GIT_COMMIT[:7] if GIT_COMMIT != 'unknown' else 'unknown'
})
if __name__ == '__main__':
port = int(os.getenv('PORT', 5000))
app.run(host='0.0.0.0', port=port)