Improve logging recovery, resource scaling, and app deploy logging.
Auto-reconnect Elasticsearch port-forward after cluster or API restarts, poll log status in the UI, and apply storage changes through billing upgrade for all workloads. Add Redis/RabbitMQ PVC resize, Helm ES credentials for Fluent Bit, and fix deploy progress overlay behavior. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -130,3 +130,21 @@ Default log paths based on runtime
|
||||
{{- else }}/var/log/app/*.log
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
{{/*
|
||||
Shell start command for stdout capture (must match CloudHost-generated images).
|
||||
*/}}
|
||||
{{- define "cloudhost-app.runtimeStartCommand" -}}
|
||||
{{- if eq .Values.app.runtime "nodejs" -}}
|
||||
if [ -f /app/.mode ] && [ "$(cat /app/.mode)" = "standalone" ] && [ -f server.js ]; then node server.js; else npm start; fi
|
||||
{{- else if eq .Values.app.runtime "go" -}}
|
||||
./main
|
||||
{{- else if eq .Values.app.runtime "dotnet" -}}
|
||||
DLL=$(find . -maxdepth 1 -name '*.dll' ! -name '*.deps.dll' ! -name '*.runtimeconfig.dll' | head -1) && dotnet "$DLL"
|
||||
{{- else -}}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
{{- define "cloudhost-app.loggingWrapEnabled" -}}
|
||||
{{- and .Values.elasticsearch.enabled (include "cloudhost-app.runtimeStartCommand" .) -}}
|
||||
{{- end }}
|
||||
|
||||
Reference in New Issue
Block a user