Adds prisma data proxy (#7706)
* Adds prisma data proxy * Fix for pipeline * Update gh.env * Update env-create-file.yml * Reverts some changes * Update turbo.json * Update .env.example --------- Co-authored-by: Peer Richelsen <peeroke@gmail.com>pull/7700/head
parent
089f52b425
commit
f20d78bec1
|
@ -22,6 +22,10 @@ CALCOM_LICENSE_KEY=
|
||||||
|
|
||||||
# - DATABASE ************************************************************************************************
|
# - DATABASE ************************************************************************************************
|
||||||
DATABASE_URL="postgresql://postgres:@localhost:5450/calendso"
|
DATABASE_URL="postgresql://postgres:@localhost:5450/calendso"
|
||||||
|
# Opt-in to a dedicated connection pool for Prisma using Prisma Data Proxy
|
||||||
|
# Cold boots will be faster and you will be able to scale your DB independently of your application.
|
||||||
|
# @see https://www.prisma.io/docs/data-platform/data-proxy/use-data-proxy
|
||||||
|
PRISMA_GENERATE_DATAPROXY=false
|
||||||
# ***********************************************************************************************************
|
# ***********************************************************************************************************
|
||||||
|
|
||||||
# - SHARED **************************************************************************************************
|
# - SHARED **************************************************************************************************
|
||||||
|
|
|
@ -39,6 +39,7 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
- uses: ./.github/actions/dangerous-git-checkout
|
||||||
- uses: ozaytsev86/create-env-file@v1
|
- uses: ozaytsev86/create-env-file@v1
|
||||||
with:
|
with:
|
||||||
file-name: ${{ github.workspace }}/gh.env
|
file-name: ${{ github.workspace }}/gh.env
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
"version": "0.0.0",
|
"version": "0.0.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "yarn prisma migrate deploy",
|
|
||||||
"clean": "rm -rf .turbo && rm -rf node_modules",
|
"clean": "rm -rf .turbo && rm -rf node_modules",
|
||||||
"db-deploy": "yarn prisma migrate deploy",
|
"db-deploy": "yarn prisma migrate deploy",
|
||||||
"db-migrate": "yarn prisma migrate dev",
|
"db-migrate": "yarn prisma migrate dev",
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
"pipeline": {
|
"pipeline": {
|
||||||
"@calcom/prisma#build": {
|
"@calcom/prisma#build": {
|
||||||
"cache": false,
|
"cache": false,
|
||||||
"dependsOn": ["post-install", "db-deploy"],
|
"dependsOn": ["post-install"],
|
||||||
"outputs": []
|
"outputs": []
|
||||||
},
|
},
|
||||||
"@calcom/prisma#db-migrate": {
|
"@calcom/prisma#db-migrate": {
|
||||||
|
@ -48,7 +48,7 @@
|
||||||
},
|
},
|
||||||
"@calcom/web#start": {
|
"@calcom/web#start": {
|
||||||
"cache": false,
|
"cache": false,
|
||||||
"dependsOn": ["@calcom/prisma#db-deploy"],
|
"dependsOn": [],
|
||||||
"outputs": []
|
"outputs": []
|
||||||
},
|
},
|
||||||
"@calcom/website#build": {
|
"@calcom/website#build": {
|
||||||
|
@ -242,6 +242,7 @@
|
||||||
"$PLAYWRIGHT_HEADLESS",
|
"$PLAYWRIGHT_HEADLESS",
|
||||||
"$PLAYWRIGHT_TEST_BASE_URL",
|
"$PLAYWRIGHT_TEST_BASE_URL",
|
||||||
"$PRISMA_FIELD_ENCRYPTION_KEY",
|
"$PRISMA_FIELD_ENCRYPTION_KEY",
|
||||||
|
"$PRISMA_GENERATE_DATAPROXY",
|
||||||
"$QUICK",
|
"$QUICK",
|
||||||
"$RAILWAY_STATIC_URL",
|
"$RAILWAY_STATIC_URL",
|
||||||
"$SALESFORCE_CONSUMER_KEY",
|
"$SALESFORCE_CONSUMER_KEY",
|
||||||
|
|
Loading…
Reference in New Issue