diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 18de03c..ef28be7 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -25,6 +25,8 @@ jobs: LOG_LEVEL: ${{ vars.LOG_LEVEL }} DB_DIRECTORY: ${{ vars.DB_DIRECTORY }} DB_FILENAME: ${{ vars.DB_FILENAME }} + TRANSACTION_RELATIVE_FROM_DATE: ${{ vars.TRANSACTION_RELATIVE_FROM_DATE }} + TRANSACTION_RELATIVE_TO_DATE: ${{ vars.TRANSACTION_RELATIVE_TO_DATE }} steps: - name: Check out repository code diff --git a/docker-compose.yml b/docker-compose.yml index ba2b76d..bb6a8ae 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -21,8 +21,9 @@ services: - TRANSACTION_RELATIVE_FROM_DATE - TRANSACTION_RELATIVE_TO_DATE volumes: - # TODO CACHE directory in volume? - - data:/${DB_DIRECTORY} + - cache:/${ACTUAL_DATA_DIR:-.cache} + - data:/${DB_DIRECTORY:-data} volumes: + cache: data: diff --git a/src/main.ts b/src/main.ts index 8bc4a67..16dfbb6 100644 --- a/src/main.ts +++ b/src/main.ts @@ -89,7 +89,7 @@ async function main(): Promise<void> { await ActualImpl.testConnection() } - logger.info("Waiting for CRON job to start") + logger.info("Waiting for CronJob to start") let actual: Actual | undefined try { cronJob = cronJobDaily(async () => {