Skip to content

Commit

Permalink
chore: remove fake data from seed script
Browse files Browse the repository at this point in the history
  • Loading branch information
awinogradov committed Aug 15, 2023
1 parent 920f088 commit b7b3584
Show file tree
Hide file tree
Showing 5 changed files with 395 additions and 348 deletions.
2 changes: 1 addition & 1 deletion .env.ci
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
NODE_ENV=production

DATABASE_URL=postgresql://prisma:hilly-sand-pit@db:5432/prisma?schema=prisma-pg-test
DATABASE_URL=postgresql://prisma:hilly-sand-pit@db:5432/prisma?schema=e2e
NEXTAUTH_URL=http://localhost:3000
NEXT_PUBLIC_NEXTAUTH_URL=http://localhost:3000
NEXTAUTH_SECRET=ololo
Expand Down
4 changes: 2 additions & 2 deletions app_run.ci.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
npx prisma migrate deploy
npx prisma db seed
npm run db:migrate
npm run db:seed
node_modules/.bin/concurrently 'node background/worker/index.js' 'node server.js'
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"dev:db:init": "npx prisma migrate dev --preview-feature && npx prisma db seed",
"dev:db:run": "docker-compose -f docker-compose.dev.yml up -d",
"dev:db:down": "docker-compose down",
"dev:db:fill": "ts-node -r dotenv/config scripts/fillDevData.ts",
"db:migrate": "npx prisma migrate deploy",
"db:seed": "npx prisma db seed",
"worker": "ts-node -r dotenv/config src/utils/worker/index.ts",
Expand All @@ -21,7 +22,7 @@
"type-check": "npx tsc"
},
"prisma": {
"seed": "ts-node -r dotenv/config --compiler-options {\"module\":\"CommonJS\"} prisma/seed.ts"
"seed": "ts-node -r dotenv/config prisma/seed.ts"
},
"dependencies": {
"@aws-sdk/client-s3": "3.374.0",
Expand Down
Loading

0 comments on commit b7b3584

Please sign in to comment.