diff --git a/apps/docker/project.json b/apps/docker/project.json index 921b542..cbec64c 100644 --- a/apps/docker/project.json +++ b/apps/docker/project.json @@ -6,10 +6,6 @@ "targets": { "build": { "dependsOn": [ - { - "target": "copy-env-file", - "projects": ["server"] - }, { "target": "build", "projects": ["web", "server"] diff --git a/apps/server/project.json b/apps/server/project.json index b0d0c4b..be5a2f8 100644 --- a/apps/server/project.json +++ b/apps/server/project.json @@ -21,7 +21,8 @@ "configurations": { "development": {}, "production": {} - } + }, + "dependsOn": ["setup-db"] }, "serve": { "executor": "@nx/js:node", @@ -74,13 +75,13 @@ } }, "setup-db": { - "command": "node apps/server/scripts/setup-db.js" + "command": "node apps/server/scripts/setup-db.js", + "dependsOn": ["copy-env-file"] }, "start-db": { "command": "node apps/server/scripts/start-db.js" }, "copy-env-file": { - "dependsOn": ["setup-db"], "command": "node apps/server/scripts/copy-env-file.js" } },