Skip to content

Commit f82fb2b

Browse files
committed
moving command around
1 parent c09e769 commit f82fb2b

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
"backend:build": "docker build --platform linux/amd64 --build-arg=\"COMMIT=$(git rev-parse HEAD)\" --build-arg=\"BUILD_TIMESTAMP=$(date +%s)\" --build-arg=\"COMMIT_MESSAGE=$(git --no-pager show -s --format=%s)\" -t $(sh ./infrastructure/prod/get-ecr-image-name.sh local-head backend) -f ./infrastructure/prod/Dockerfile.server .",
3030
"backend:run": "docker run -p 4001:3001 $(sh ./infrastructure/prod/get-ecr-image-name.sh local-head backend)",
3131
"backend:push": "docker push $(sh ./infrastructure/prod/get-ecr-image-name.sh local-head backend)",
32-
"prod:migration:run": "yarn build && NODE_ENV=production yarn g:cross-env ts-node --project ./tsconfig.json ../../node_modules/typeorm/cli.js migration:run",
3332
"ecr:docker:auth": "aws ecr get-login-password --region us-east-1 | docker login --username AWS --password-stdin $(aws sts get-caller-identity --query Account --output text).dkr.ecr.us-east-1.amazonaws.com",
3433
"lint": "eslint packages/ --ext .ts,.tsx .",
3534
"tsc": "yarn workspaces foreach -v --exclude . run tsc",

packages/api/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@
2525
"typeorm": "yarn g:cross-env NODE_ENV=development ts-node --project ./tsconfig.json ../../node_modules/typeorm/cli.js",
2626
"dev:db:reset": "yarn typeorm schema:drop",
2727
"dev:migration:generate": "yarn dev:db:reset && yarn typeorm migration:run && yarn typeorm migration:generate",
28-
"dev:migration:run": "yarn build && yarn typeorm migration:run"
28+
"dev:migration:run": "yarn build && yarn typeorm migration:run",
29+
"prod:migration:run": "yarn build && NODE_ENV=production yarn g:cross-env ts-node --project ./tsconfig.json ../../node_modules/typeorm/cli.js migration:run"
2930
},
3031
"dependencies": {
3132
"@graduate/common": "workspace:*",

0 commit comments

Comments
 (0)