Skip to content

Commit

Permalink
added cuncurrently to run two commands together
Browse files Browse the repository at this point in the history
  • Loading branch information
Prashant-flick committed Oct 2, 2024
1 parent 4e9bd91 commit c75135b
Show file tree
Hide file tree
Showing 3 changed files with 252 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,5 @@ jobs:
sudo docker pull prashantflick/paytm-turbo-user:latest
sudo docker stop user-paytm || true
sudo docker rm user-paytm || true
sudo docker run --name user-paytm -d -p 3001:3001 -e DATABASE_URL=${{secrets.DATABASE_URL}} -e NEXTAUTH_URL=${{secrets.NEXTAUTH_URL}} -e NEXTAUTH_SECRET=${{secrets.NEXTAUTH_SECRET}} -e GOOGLE_CLIENT_ID=${{secrets.GOOGLE_CLIENT_ID}} -e GOOGLE_CLIENT_SECRET=${{secrets.GOOGLE_CLIENT_SECRET}} prashantflick/paytm-turbo-user:latest
sudo docker run --name user-paytm -d -p 3001:3001 prashantflick/paytm-turbo-user:latest
250 changes: 247 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@
"lint": "turbo lint",
"format": "prettier --write \"**/*.{ts,tsx,md}\"",
"db:generate": "cd packages/db && npx prisma generate && cd ../..",
"start-user-app": "cd apps/user-app && npm run dev && cd ../.. && npm run start-bank-webhook",
"start-user-app": "cd apps/user-app && npm run dev && cd ../..",
"build-user-app": "cd apps/user-app && npm run build && cd ../..",
"build-bank-webhook-app": "cd apps/bank_webhook_handler && npm run build && cd ../..",
"start-bank-webhook": "cd apps/bank_webhook_handler && npm run start && cd ../.."
"start-bank-webhook": "cd apps/bank_webhook_handler && npm run start && cd ../..",
"start-user-app-and-bank-webhook": "concurrently \"npm run start-user-app\" \"npm run start-bank-webhook\""
},
"devDependencies": {
"prettier": "^3.2.5",
Expand All @@ -27,6 +28,7 @@
],
"dependencies": {
"@types/node": "^22.5.2",
"concurrently": "^9.0.1",
"ts-node": "^10.9.2"
}
}

0 comments on commit c75135b

Please sign in to comment.