2
0

chore(db): 🛂 Use env file from builder for db

This commit is contained in:
Baptiste Arnaud
2022-02-14 10:19:26 +01:00
parent b345131b0b
commit 80c15f9491
5 changed files with 782 additions and 36 deletions

1
.gitignore vendored
View File

@@ -10,3 +10,4 @@ authenticatedState.json
playwright-report playwright-report
dist dist
test-results test-results
**/api/scripts

View File

@@ -101,6 +101,7 @@
"eslint-plugin-prettier": "^4.0.0", "eslint-plugin-prettier": "^4.0.0",
"next-transpile-modules": "^9.0.0", "next-transpile-modules": "^9.0.0",
"prettier": "^2.5.1", "prettier": "^2.5.1",
"firebase-admin": "^10.0.2",
"typescript": "^4.5.5" "typescript": "^4.5.5"
} }
} }

View File

@@ -1 +0,0 @@
DATABASE_URL=postgresql://postgres:@localhost:5432/typebot

View File

@@ -2,21 +2,22 @@
"name": "db", "name": "db",
"license": "AGPL-3.0-or-later", "license": "AGPL-3.0-or-later",
"version": "0.1.0", "version": "0.1.0",
"main": "./index.tsx", "main": "./index.ts",
"types": "./index.tsx", "types": "./index.ts",
"devDependencies": { "devDependencies": {
"prisma": "^3.8.1", "prisma": "^3.9.2",
"ts-node": "^10.4.0", "ts-node": "^10.5.0",
"typescript": "^4.5.5" "typescript": "^4.5.5"
}, },
"dependencies": { "dependencies": {
"@prisma/client": "^3.8.1" "@prisma/client": "^3.9.2"
}, },
"scripts": { "scripts": {
"dev": "dotenv -e .env yarn prisma db push && BROWSER=none yarn prisma studio", "dev": "dotenv -e ../../apps/builder/.env.local yarn prisma db push && yarn start:sutdio ",
"start:sutdio": "dotenv -e ../../apps/builder/.env.local -v BROWSER=none yarn prisma studio",
"build": "yarn migration:push", "build": "yarn migration:push",
"migration:push": "dotenv -e .env yarn prisma db push", "migration:push": "dotenv -e ../../apps/builder/.env.local yarn prisma db push",
"migration:create": "dotenv -e .env yarn prisma migrate dev", "migration:create": "dotenv -e ../../apps/builder/.env.local yarn prisma migrate dev",
"migration:reset": "dotenv -e .env yarn prisma migrate reset" "migration:reset": "dotenv -e ../../apps/builder/.env.local yarn prisma migrate reset"
} }
} }

796
yarn.lock

File diff suppressed because it is too large Load Diff