Skip to content

Commit

Permalink
use a script in package
Browse files Browse the repository at this point in the history
  • Loading branch information
ships committed Feb 20, 2024
1 parent 83d34e6 commit 7f81ff5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"invite-users": "dotenv -e .env.local ts-node scripts/invite.ts",
"migrate-dev": "dotenv -e .env.local prisma migrate dev",
"migrate-deploy": "dotenv -e .env.local prisma migrate deploy",
"migrate-docker": "dotenv -e .env.docker -- prisma migrate deploy",
"prisma-studio": "dotenv -e .env.local prisma studio",
"prebuild": "prisma generate",
"start": "next start",
Expand Down
4 changes: 1 addition & 3 deletions infrastructure/terraform/aws/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,7 @@ module "service_core" {
name = "migrations"
image = "${module.cluster.ecr_repository_urls.root}:latest"
command = [
"pnpm", "--filter", "core", "exec",
"dotenv", "-e", ".env.docker", "--",
"prisma", "migrate", "reset", "--force", "--skip-generate",
"pnpm", "--filter", "core", "migrate-docker",
]
}]

Expand Down

0 comments on commit 7f81ff5

Please sign in to comment.