1
0
Fork 0
mirror of synced 2024-06-27 18:40:42 +12:00

Merge pull request #7367 from Budibase/enable-node-debug

Add support for NODE_DEBUG to app-service in kubernetes
This commit is contained in:
Rory Powell 2022-08-19 15:26:29 +01:00 committed by GitHub
commit 9e071ea4d8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 1 deletions

View file

@ -130,6 +130,10 @@ spec:
- name: BB_ADMIN_USER_PASSWORD
value: { { .Values.globals.bbAdminUserPassword | quote } }
{{ end }}
{{ if .Values.services.apps.nodeDebug }}
- name: NODE_DEBUG
value: {{ .Values.services.apps.nodeDebug | quote }}
{{ end }}
image: budibase/apps:{{ .Values.globals.appVersion }}
imagePullPolicy: Always

View file

@ -126,6 +126,7 @@ services:
port: 4002
replicaCount: 1
logLevel: info
# nodeDebug: "" # set the value of NODE_DEBUG
worker:
port: 4003

View file

@ -24,7 +24,7 @@ const Runner = new Thread(ThreadType.AUTOMATION)
export async function processEvent(job: any) {
try {
console.log(
`${job.data.automation.appId} automation ${job.data.automation._id} running`
`${job.data.automation.appId} automation ${job.data.automation._id} running. jobId=${job.id}`
)
// need to actually await these so that an error can be captured properly
const tenantId = tenancy.getTenantIDFromAppID(job.data.event.appId)