Skip to content

Commit

Permalink
Refactor Dockerfile.dev and entrypoint.sh to comment out snapshot res…
Browse files Browse the repository at this point in the history
…toration as optional.
  • Loading branch information
davepoon committed Oct 17, 2024
1 parent e358892 commit f6eb71e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions Dockerfile.dev
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 2 additions & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit f6eb71e

Please sign in to comment.