diff --git a/Procfile b/Procfile new file mode 100644 index 0000000000..8a75394921 --- /dev/null +++ b/Procfile @@ -0,0 +1 @@ +web: npx turbo run @calcom/web#start diff --git a/app.json b/app.json new file mode 100644 index 0000000000..09b12e8aad --- /dev/null +++ b/app.json @@ -0,0 +1,26 @@ +{ + "name": "Cal.com", + "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"], + "addons": [ + { + "plan": "heroku-postgresql:hobby-dev" + } + ], + "env": { + "BASE_URL": { + "description": "Replace HEROKU_APP_NAME with the name given to your app", + "value": "https://HEROKU_APP_NAME.herokuapp.com" + }, + "CALENDSO_ENCRYPTION_KEY": { + "description": "Application Key for symmetric encryption and decryption. Must be 32 bytes for AES256 encryption algorithm.", + "value": "secret" + }, + "JWT_SECRET": "secret" + }, + "scripts": { + "postdeploy": "cd apps/web && npx prisma migrate deploy" + } +} diff --git a/apps/web/app.json b/apps/web/app.json deleted file mode 100644 index a11349fd13..0000000000 --- a/apps/web/app.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "name": "Cal.com", - "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"], - "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" - } -} diff --git a/package.json b/package.json index a9d2d52578..8009f5c4bf 100644 --- a/package.json +++ b/package.json @@ -15,6 +15,7 @@ "dev": "turbo run dev --parallel", "dx": "turbo run dx", "format": "prettier --write \"**/*.{ts,tsx,md}\"", + "heroku-postbuild": "turbo run @calcom/web#build", "lint": "turbo run lint", "prepare": "husky install", "start": "turbo run start", diff --git a/turbo.json b/turbo.json index 620b8f5aeb..736d10b3b7 100644 --- a/turbo.json +++ b/turbo.json @@ -49,6 +49,7 @@ ], "outputs": [".next/**"] }, + "@calcom/web#start": {}, "build": { "dependsOn": ["^build"], "outputs": ["dist/**", ".next/**"]