From ba3c61e0a0823979c457d044848e1ff916f5664e Mon Sep 17 00:00:00 2001 From: Kevin Koech Date: Tue, 23 Jul 2024 09:51:10 +0300 Subject: [PATCH] move dokku scripts to contrib --- Dockerfile | 3 +-- apps/vpnmanager/{ => contrib/dokku}/app.json | 2 +- apps/vpnmanager/{ => contrib/dokku}/scripts/processGsheet.mjs | 0 3 files changed, 2 insertions(+), 3 deletions(-) rename apps/vpnmanager/{ => contrib/dokku}/app.json (55%) rename apps/vpnmanager/{ => contrib/dokku}/scripts/processGsheet.mjs (100%) diff --git a/Dockerfile b/Dockerfile index 778dac47c..7f974fcf6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -600,8 +600,7 @@ COPY --from=vpnmanager-builder --chown=nextjs:nodejs /workspace/apps/vpnmanager/ # https://nextjs.org/docs/advanced-features/output-file-tracing COPY --from=vpnmanager-builder --chown=nextjs:nodejs /workspace/apps/vpnmanager/.next/standalone ./apps/vpnmanager COPY --from=vpnmanager-builder --chown=nextjs:nodejs /workspace/apps/vpnmanager/.next/static ./apps/vpnmanager/.next/static -COPY --from=vpnmanager-builder --chown=nextjs:nodejs /workspace/apps/vpnmanager/scripts ./apps/vpnmanager/scripts -COPY --from=vpnmanager-builder --chown=nextjs:nodejs /workspace/apps/vpnmanager/app.json ./app.json +COPY --from=vpnmanager-builder --chown=nextjs:nodejs /workspace/apps/vpnmanager/contrib/dokku ./contrib/dokku USER nextjs # server.js is created by next build from the standalone output diff --git a/apps/vpnmanager/app.json b/apps/vpnmanager/contrib/dokku/app.json similarity index 55% rename from apps/vpnmanager/app.json rename to apps/vpnmanager/contrib/dokku/app.json index 6952f85b1..e509d641e 100644 --- a/apps/vpnmanager/app.json +++ b/apps/vpnmanager/contrib/dokku/app.json @@ -2,7 +2,7 @@ "name": "vpnmanager", "cron": [ { - "command": "node apps/vpnmanager/scripts/processGsheet.mjs", + "command": "node contrib/dokku/scripts/processGsheet.mjs", "schedule": "@hourly" } ] diff --git a/apps/vpnmanager/scripts/processGsheet.mjs b/apps/vpnmanager/contrib/dokku/scripts/processGsheet.mjs similarity index 100% rename from apps/vpnmanager/scripts/processGsheet.mjs rename to apps/vpnmanager/contrib/dokku/scripts/processGsheet.mjs