From f6eb71e9e97a8062ea22b6a018f5ee308232929b Mon Sep 17 00:00:00 2001 From: Dave Poon Date: Thu, 17 Oct 2024 18:18:37 +1100 Subject: [PATCH] Refactor Dockerfile.dev and entrypoint.sh to comment out snapshot restoration as optional. --- Dockerfile.dev | 1 + entrypoint.sh | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile.dev b/Dockerfile.dev index f3ac8fd..758552c 100644 --- a/Dockerfile.dev +++ b/Dockerfile.dev @@ -13,4 +13,5 @@ USER node RUN npx directus bootstrap # Restore schema snapshots +# COPY ./snapshots /directus/snapshots # RUN npx directus schema apply --yes /directus/files/snapshots/snapshot.yaml \ No newline at end of file diff --git a/entrypoint.sh b/entrypoint.sh index 034d321..17a6bbc 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,5 +1,6 @@ #!/bin/sh npx directus bootstrap -npx directus schema apply --yes ./snapshots/snapshot.yaml +# Comment out the following line if you want to sync the snapshot +# npx directus schema apply --yes ./snapshots/snapshot.yaml node cli.js bootstrap && pm2-runtime start ecosystem.config.cjs \ No newline at end of file