Add support for NODE_DEBUG to app-service in kubernetes
This commit is contained in:
parent
099aaa0fb2
commit
97cafac46c
|
@ -130,6 +130,10 @@ spec:
|
||||||
- name: BB_ADMIN_USER_PASSWORD
|
- name: BB_ADMIN_USER_PASSWORD
|
||||||
value: { { .Values.globals.bbAdminUserPassword | quote } }
|
value: { { .Values.globals.bbAdminUserPassword | quote } }
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
{{ if .Values.services.apps.nodeDebug }}
|
||||||
|
- name: NODE_DEBUG
|
||||||
|
value: {{ .Values.services.apps.nodeDebug | quote }}
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
image: budibase/apps:{{ .Values.globals.appVersion }}
|
image: budibase/apps:{{ .Values.globals.appVersion }}
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: Always
|
||||||
|
|
|
@ -126,6 +126,7 @@ services:
|
||||||
port: 4002
|
port: 4002
|
||||||
replicaCount: 1
|
replicaCount: 1
|
||||||
logLevel: info
|
logLevel: info
|
||||||
|
# nodeDebug: "" # set the value of NODE_DEBUG
|
||||||
|
|
||||||
worker:
|
worker:
|
||||||
port: 4003
|
port: 4003
|
||||||
|
|
|
@ -24,7 +24,7 @@ const Runner = new Thread(ThreadType.AUTOMATION)
|
||||||
export async function processEvent(job: any) {
|
export async function processEvent(job: any) {
|
||||||
try {
|
try {
|
||||||
console.log(
|
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
|
// need to actually await these so that an error can be captured properly
|
||||||
const tenantId = tenancy.getTenantIDFromAppID(job.data.event.appId)
|
const tenantId = tenancy.getTenantIDFromAppID(job.data.event.appId)
|
||||||
|
|
Loading…
Reference in New Issue