diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 81d9607..f4821b9 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -12,7 +12,7 @@ "ghcr.io/devcontainers/features/docker-outside-of-docker:1": {} }, - "onCreateCommand": "pnpm run db:seed", + "onCreateCommand": "pnpm run db:migrate:dev && pnpm run db:seed", "postCreateCommand": "echo alias dudes=\\'docker compose -p dudes -f compose.dev.yaml\\' >> ~/.bashrc; bash", diff --git a/Dockerfile.dev b/Dockerfile.dev index e5a6fa5..d8a8b95 100644 --- a/Dockerfile.dev +++ b/Dockerfile.dev @@ -6,4 +6,4 @@ RUN --mount=type=cache,target=/root/.local/share/pnpm/ \ npm install -g pnpm && pnpm install && npx nx reset ENV PATH /app/node_modules/.bin:$PATH COPY . . -CMD pnpm run db:migrate:dev && pnpm run dev --host 0.0.0.0 --inspect +CMD pnpm run dev --host 0.0.0.0 --inspect