From f390d6c467e33c4208e1a5615107b3be8c4a27b5 Mon Sep 17 00:00:00 2001 From: carolineBda Date: Thu, 24 Mar 2022 15:11:36 +0100 Subject: [PATCH] fix(cron): move back cron in src folder --- Dockerfile | 1 - package.json | 2 +- {scripts => src}/cron/demarchesSimplifiees.ts | 0 {scripts => src}/cron/launch.ts | 0 4 files changed, 1 insertion(+), 2 deletions(-) rename {scripts => src}/cron/demarchesSimplifiees.ts (100%) rename {scripts => src}/cron/launch.ts (100%) diff --git a/Dockerfile b/Dockerfile index c74e75a0..433d8655 100644 --- a/Dockerfile +++ b/Dockerfile @@ -30,7 +30,6 @@ COPY --from=builder /app/.env.production ./.env COPY --from=builder /app/package.json . COPY --from=builder /app/src ./src COPY --from=builder /app/public ./public -COPY --from=builder /app/scripts/cron ./app/scripts/cron COPY --from=builder /app/node_modules ./node_modules COPY --from=builder --chown=node:node /app/.next ./.next diff --git a/package.json b/package.json index aa6b4067..d9d68598 100644 --- a/package.json +++ b/package.json @@ -84,7 +84,7 @@ "db:migrate:create": "npx sequelize migration:create --name", "cy": "cypress open", "cy:run": "cypress run", - "cron:launch": "ts-node --transpile-only scripts/cron/launch.ts", + "cron:launch": "ts-node --transpile-only src/cron/launch.ts", "script:extract-departments": "ts-node --transpile-only scripts/stats-departements.js" } } diff --git a/scripts/cron/demarchesSimplifiees.ts b/src/cron/demarchesSimplifiees.ts similarity index 100% rename from scripts/cron/demarchesSimplifiees.ts rename to src/cron/demarchesSimplifiees.ts diff --git a/scripts/cron/launch.ts b/src/cron/launch.ts similarity index 100% rename from scripts/cron/launch.ts rename to src/cron/launch.ts