From c201bfab2dd3c95ee1f9bb2c649f8786d3dbb1c8 Mon Sep 17 00:00:00 2001 From: Arthur Denner Date: Mon, 7 Feb 2022 23:01:51 +0100 Subject: [PATCH] fix: add missing items to app.json (#1732) * fix: add Postgres addon to app.json * feat: add BASE_URL env variable to app.json * fix: add JWT_SECRET env variable to app.json * fix: add postdeploy script to app.json * fix: add CALENDSO_ENCRYPTION_KEY env variable to app.json --- app.json | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/app.json b/app.json index 18b4e2a5..a11349fd 100644 --- a/app.json +++ b/app.json @@ -3,5 +3,18 @@ "description": "Open Source Scheduling", "repository": "https://github.com/calcom/cal.com", "logo": "https://cal.com/android-chrome-512x512.png", - "keywords": ["react", "typescript", "node", "nextjs", "prisma", "postgres", "trpc"] + "keywords": ["react", "typescript", "node", "nextjs", "prisma", "postgres", "trpc"], + "addons": [ + { + "plan": "heroku-postgresql:hobby-dev" + } + ], + "env": { + "BASE_URL": "https://${HEROKU_APP_NAME}.herokuapp.com", + "CALENDSO_ENCRYPTION_KEY": "32-random-string", + "JWT_SECRET": "secret" + }, + "scripts": { + "postdeploy": "npx prisma migrate deploy" + } }