diff --git a/.gitignore b/.gitignore index effb28f..f6b49c3 100644 --- a/.gitignore +++ b/.gitignore @@ -2,7 +2,6 @@ /dist /node_modules /build -/.afj # Logs logs diff --git a/credo/cache/.afj/.gitignore b/credo/cache/.afj/.gitignore new file mode 100644 index 0000000..c96a04f --- /dev/null +++ b/credo/cache/.afj/.gitignore @@ -0,0 +1,2 @@ +* +!.gitignore \ No newline at end of file diff --git a/credo/data/.afj/.gitignore b/credo/data/.afj/.gitignore new file mode 100644 index 0000000..c96a04f --- /dev/null +++ b/credo/data/.afj/.gitignore @@ -0,0 +1,2 @@ +* +!.gitignore \ No newline at end of file diff --git a/credo/temp/.afj/.gitignore b/credo/temp/.afj/.gitignore new file mode 100644 index 0000000..c96a04f --- /dev/null +++ b/credo/temp/.afj/.gitignore @@ -0,0 +1,2 @@ +* +!.gitignore \ No newline at end of file diff --git a/devops/charts/server/README.md b/devops/charts/server/README.md index 255af36..efcb523 100644 --- a/devops/charts/server/README.md +++ b/devops/charts/server/README.md @@ -1,7 +1,9 @@ +Initial: ```console helm install vdr-proxy ./devops/charts/server -f ./devops/charts/server/values_dev.yaml ``` +Afterwards: ```console -helm template vdr-proxy ./devops/charts/server -f ./devops/charts/server values_dev.yaml | oc apply -n c2a2c4-dev -f - +helm upgrade vdr-proxy ./devops/charts/server -f ./devops/charts/server/values_dev.yaml ``` \ No newline at end of file diff --git a/devops/charts/server/templates/deployment.yaml b/devops/charts/server/templates/deployment.yaml index 36c0f9c..ebf603a 100644 --- a/devops/charts/server/templates/deployment.yaml +++ b/devops/charts/server/templates/deployment.yaml @@ -55,7 +55,7 @@ spec: periodSeconds: 10 volumeMounts: - name: cache-volume - mountPath: /app/cache + mountPath: /app/credo env: - name: PORT value: {{.Values.env.PORT | quote}} diff --git a/src/helpers/agent.ts b/src/helpers/agent.ts index 79e6fc1..6d6e736 100644 --- a/src/helpers/agent.ts +++ b/src/helpers/agent.ts @@ -24,7 +24,9 @@ import { WebSocket } from 'ws' class CustomFileSystem extends NodeFileSystem { public constructor() { super({ - baseDataPath: `${process.cwd()}/cache`, + baseDataPath: `${process.cwd()}/credo/data`, + baseCachePath: `${process.cwd()}/credo/cache`, + baseTempPath: `${process.cwd()}/credo/tmp`, }) } }