Skip to content

Commit

Permalink
Align Server Deployment (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristopherPHolder committed Sep 28, 2023
2 parents 1b0a067 + 9874248 commit 6dd7c3c
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
25 changes: 25 additions & 0 deletions apps/audit-runner/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,31 @@
"codeCoverage": true
}
}
},
"deploy": {
"executor": "nx:run-commands",
"dependsOn": ["build"],
"options": {
"parallel": false,
"commands": [
{
"command": "`[ {args.environment} != dev ]` && `[ {args.environment} != prod ]` && exit 1 || exit 0",
"forwardAllArgs": true
},
{
"command": "echo 'Deploying Server to {args.environment} environment'",
"forwardAllArgs": true
},
{
"command": "`[ {args.environment} == prod ]` && aws s3 sync ./dist/apps/audit-runner s3://ufo-runner-dev --delete && node ./scripts/deploy-runner.js || exit 0",
"forwardAllArgs": true
},
{
"command": "`[ {args.environment} == dev ]` && aws s3 sync ./dist/apps/audit-runner s3://ufo-runner-dev --delete && node ./scripts/deploy-runner.js || exit 0",
"forwardAllArgs": true
}
]
}
}
},
"tags": ["backend"]
Expand Down
2 changes: 1 addition & 1 deletion apps/user-flow-manager/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
"forwardAllArgs": true
},
{
"command": "echo 'Deploying to {args.environment} environment'",
"command": "echo 'Deploying Front-End to {args.environment} environment'",
"forwardAllArgs": true
},
{
Expand Down

0 comments on commit 6dd7c3c

Please sign in to comment.