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>
This commit is contained in:
Omar López 2023-03-15 13:33:54 -07:00 committed by GitHub
parent 089f52b425
commit f20d78bec1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 3 deletions

View File

@ -22,6 +22,10 @@ CALCOM_LICENSE_KEY=
# - DATABASE ************************************************************************************************
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 **************************************************************************************************

View File

@ -39,6 +39,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/dangerous-git-checkout
- uses: ozaytsev86/create-env-file@v1
with:
file-name: ${{ github.workspace }}/gh.env

View File

@ -3,7 +3,6 @@
"version": "0.0.0",
"private": true,
"scripts": {
"build": "yarn prisma migrate deploy",
"clean": "rm -rf .turbo && rm -rf node_modules",
"db-deploy": "yarn prisma migrate deploy",
"db-migrate": "yarn prisma migrate dev",

View File

@ -3,7 +3,7 @@
"pipeline": {
"@calcom/prisma#build": {
"cache": false,
"dependsOn": ["post-install", "db-deploy"],
"dependsOn": ["post-install"],
"outputs": []
},
"@calcom/prisma#db-migrate": {
@ -48,7 +48,7 @@
},
"@calcom/web#start": {
"cache": false,
"dependsOn": ["@calcom/prisma#db-deploy"],
"dependsOn": [],
"outputs": []
},
"@calcom/website#build": {
@ -242,6 +242,7 @@
"$PLAYWRIGHT_HEADLESS",
"$PLAYWRIGHT_TEST_BASE_URL",
"$PRISMA_FIELD_ENCRYPTION_KEY",
"$PRISMA_GENERATE_DATAPROXY",
"$QUICK",
"$RAILWAY_STATIC_URL",
"$SALESFORCE_CONSUMER_KEY",