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