Skip to content

Commit 691235f

Browse files
fix: deployment setup to Heroku (#1834)
* fix: move app.json to root directory * fix: add heroku-postbuild script * chore: add description to env variables on app.json * fix: update postdeploy script on app.json * fix: add Procfile to override start script Co-authored-by: Peer Richelsen <peeroke@gmail.com>
1 parent b7ad073 commit 691235f

File tree

5 files changed

+29
-20
lines changed

5 files changed

+29
-20
lines changed

Procfile

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
web: npx turbo run @calcom/web#start

app.json

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"name": "Cal.com",
3+
"description": "Open Source Scheduling",
4+
"repository": "https://github.com/calcom/cal.com",
5+
"logo": "https://cal.com/android-chrome-512x512.png",
6+
"keywords": ["react", "typescript", "node", "nextjs", "prisma", "postgres", "trpc"],
7+
"addons": [
8+
{
9+
"plan": "heroku-postgresql:hobby-dev"
10+
}
11+
],
12+
"env": {
13+
"BASE_URL": {
14+
"description": "Replace HEROKU_APP_NAME with the name given to your app",
15+
"value": "https://HEROKU_APP_NAME.herokuapp.com"
16+
},
17+
"CALENDSO_ENCRYPTION_KEY": {
18+
"description": "Application Key for symmetric encryption and decryption. Must be 32 bytes for AES256 encryption algorithm.",
19+
"value": "secret"
20+
},
21+
"JWT_SECRET": "secret"
22+
},
23+
"scripts": {
24+
"postdeploy": "cd apps/web && npx prisma migrate deploy"
25+
}
26+
}

apps/web/app.json

-20
This file was deleted.

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"dev": "turbo run dev --parallel",
1616
"dx": "turbo run dx",
1717
"format": "prettier --write \"**/*.{ts,tsx,md}\"",
18+
"heroku-postbuild": "turbo run @calcom/web#build",
1819
"lint": "turbo run lint",
1920
"prepare": "husky install",
2021
"start": "turbo run start",

turbo.json

+1
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
],
5050
"outputs": [".next/**"]
5151
},
52+
"@calcom/web#start": {},
5253
"build": {
5354
"dependsOn": ["^build"],
5455
"outputs": ["dist/**", ".next/**"]

0 commit comments

Comments
 (0)