Skip to content

Commit

Permalink
Merge pull request #31 from yurenju/feat/docker-undefined
Browse files Browse the repository at this point in the history
fix: undefined value in init-db script
  • Loading branch information
yurenju authored Sep 28, 2023
2 parents 4fd398f + e25a535 commit 23a5806
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
4 changes: 0 additions & 4 deletions apps/docker/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@
"targets": {
"build": {
"dependsOn": [
{
"target": "copy-env-file",
"projects": ["server"]
},
{
"target": "build",
"projects": ["web", "server"]
Expand Down
7 changes: 4 additions & 3 deletions apps/server/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
"configurations": {
"development": {},
"production": {}
}
},
"dependsOn": ["setup-db"]
},
"serve": {
"executor": "@nx/js:node",
Expand Down Expand Up @@ -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"
}
},
Expand Down

0 comments on commit 23a5806

Please sign in to comment.