-
Notifications
You must be signed in to change notification settings - Fork 198
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f3f0f30
commit 12e0f1e
Showing
4 changed files
with
18 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,11 +5,12 @@ | |
"repository": "[email protected]:piyushgarg-dev/review-app-api.git", | ||
"author": "Piyush Garg <[email protected]>", | ||
"scripts": { | ||
"local": "dotenv -c local -- npm run prisma:generate && concurrently \"serverless offline --stage local --disableCookieValidation\"", | ||
"migrate:latest": "dotenv -c local -- prisma migrate deploy", | ||
"prisma:migrate:local": "dotenv -c local -- prisma migrate dev", | ||
"local": "dotenv -c development -- npm run prisma:generate && concurrently \"serverless offline --stage development --disableCookieValidation\"", | ||
"migrate:latest": "dotenv -c development -- prisma migrate deploy", | ||
"prisma:migrate:local": "dotenv -c development -- prisma migrate dev", | ||
"prisma:generate": "prisma generate", | ||
"prisma:studio": "dotenv -c local -- prisma studio" | ||
"prisma:studio": "dotenv -c development -- prisma studio", | ||
"deploy:prod": "dotenv -c production -- sh scripts/deploy.sh production" | ||
}, | ||
"devDependencies": { | ||
"@types/jsonwebtoken": "^9.0.2", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
STAGE="$1" | ||
|
||
echo "[$STAGE]: Migrate Primsa" | ||
dotenv -c $STAGE -- prisma migrate deploy | ||
|
||
echo "[$STAGE]: Generate Primsa Client" | ||
npm run prisma:generate | ||
|
||
echo "[$STAGE]: Start Serverless Deployment" | ||
sls deploy --stage $STAGE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters