Skip to content

Commit

Permalink
Adds prisma data proxy (#7706)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
zomars and PeerRich authored Mar 15, 2023
1 parent 089f52b commit f20d78b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -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 **************************************************************************************************
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/env-create-file.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion packages/prisma/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
5 changes: 3 additions & 2 deletions turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"pipeline": {
"@calcom/prisma#build": {
"cache": false,
"dependsOn": ["post-install", "db-deploy"],
"dependsOn": ["post-install"],
"outputs": []
},
"@calcom/prisma#db-migrate": {
Expand Down Expand Up @@ -48,7 +48,7 @@
},
"@calcom/web#start": {
"cache": false,
"dependsOn": ["@calcom/prisma#db-deploy"],
"dependsOn": [],
"outputs": []
},
"@calcom/website#build": {
Expand Down Expand Up @@ -242,6 +242,7 @@
"$PLAYWRIGHT_HEADLESS",
"$PLAYWRIGHT_TEST_BASE_URL",
"$PRISMA_FIELD_ENCRYPTION_KEY",
"$PRISMA_GENERATE_DATAPROXY",
"$QUICK",
"$RAILWAY_STATIC_URL",
"$SALESFORCE_CONSUMER_KEY",
Expand Down

1 comment on commit f20d78b

@vercel
Copy link

@vercel vercel bot commented on f20d78b Mar 15, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

ui – ./apps/storybook

ui-git-main-cal.vercel.app
ui.cal.com
ui-cal.vercel.app
cal-com-storybook.vercel.app
www.timelessui.com
timelessui.com

Please sign in to comment.