diff --git a/ReymotaPy/K8S/reymotapy-deployment.yaml b/ReymotaPy/K8S/reymotapy-deployment.yaml index 34a610d..c19b332 100644 --- a/ReymotaPy/K8S/reymotapy-deployment.yaml +++ b/ReymotaPy/K8S/reymotapy-deployment.yaml @@ -38,6 +38,9 @@ spec: - reymotapy:create_app() image: creylopez/reymotapy:1.0 name: reymotapy + env: + - name: SALUDO_DEMO + value: "Hola, mundo" ports: - containerPort: 5000 name: reymotapy diff --git a/ReymotaPy/servicios/lanza.sh b/ReymotaPy/servicios/lanza.sh index 9289eaf..63c189e 100644 --- a/ReymotaPy/servicios/lanza.sh +++ b/ReymotaPy/servicios/lanza.sh @@ -1 +1 @@ -python -m flask --app reymotapy run \ No newline at end of file +python3 -m flask --app reymotapy run \ No newline at end of file diff --git a/ReymotaPy/servicios/reymotapy/__init__.py b/ReymotaPy/servicios/reymotapy/__init__.py index 82b9354..3e9a63c 100644 --- a/ReymotaPy/servicios/reymotapy/__init__.py +++ b/ReymotaPy/servicios/reymotapy/__init__.py @@ -49,6 +49,8 @@ def create_app(): print(f"Using Database: {app.config.get('DATABASE')}") print(f"Directorio de uploads: {app.config.get('UPLOAD_FOLDER')}") print(f"instance: {app.instance_path}") + print(f"Saludo: {os.getenv('SALUDO_DEMO')}") + return app