Adds deploy script (#1286)

pull/1215/head^2
Omar López 2021-12-09 09:19:52 -07:00 committed by GitHub
parent 850497ea80
commit 8617b2db65
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -9,10 +9,12 @@
"dev": "next dev", "dev": "next dev",
"db-up": "docker-compose up -d", "db-up": "docker-compose up -d",
"db-migrate": "yarn prisma migrate dev", "db-migrate": "yarn prisma migrate dev",
"db-deploy": "yarn prisma migrate deploy",
"db-seed": "yarn ts-node scripts/seed.ts", "db-seed": "yarn ts-node scripts/seed.ts",
"db-nuke": "docker-compose down --volumes --remove-orphans", "db-nuke": "docker-compose down --volumes --remove-orphans",
"db-setup": "run-s db-up db-migrate db-seed", "db-setup": "run-s db-up db-migrate db-seed",
"db-reset": "run-s db-nuke db-setup", "db-reset": "run-s db-nuke db-setup",
"deploy": "run-s build db-deploy",
"dx": "env-cmd run-s db-setup dev", "dx": "env-cmd run-s db-setup dev",
"test": "jest", "test": "jest",
"test-playwright": "jest --config jest.playwright.config.js", "test-playwright": "jest --config jest.playwright.config.js",