Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Procfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
web: bun --filter=${SERVICE_NAME:-@comp/app} run start
release: bun run db:deploy
60 changes: 60 additions & 0 deletions app.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
{
"name": "Comp AI",
"description": "The open-source compliance platform",
"repository": "https://github.com/trycompai/comp",
"logo": "https://assets.trycomp.ai/logo.png",
"keywords": [
"compliance",
"soc2",
"iso27001",
"hipaa",
"gdpr"
],
"buildpacks": [
{
"url": "https://github.com/jakeonrails/bun-buildpack.git"
}
],
"addons": [
"heroku-postgresql:essential-0",
"heroku-redis:mini"
],
"env": {
"AUTH_SECRET": {
"description": "Secret key for authentication (use openssl rand -base64 32)",
"generator": "secret"
},
"REVALIDATION_SECRET": {
"description": "Secret for nextjs revalidation (use openssl rand -base64 32)",
"generator": "secret"
},
"SKIP_ENV_VALIDATION": {
"description": "Skip environment validation during build time",
"value": "true"
},
"NEXT_PUBLIC_PORTAL_URL": {
"description": "URL for the portal app (e.g. https://your-app-portal.herokuapp.com)",
"required": false
},
"NEXT_PUBLIC_BETTER_AUTH_URL": {
"description": "Must point to the domain hosting the app (e.g. https://your-app.herokuapp.com)",
"required": false
},
"NEXT_PUBLIC_API_URL": {
"description": "Must point to the domain hosting the api (e.g. https://your-app-api.herokuapp.com)",
"required": false
},
"RESEND_API_KEY": {
"description": "Resend API Key for emails",
"required": false
},
"TRIGGER_SECRET_KEY": {
"description": "Trigger.dev secret key",
"required": false
},
"OPENAI_API_KEY": {
"description": "OpenAI API Key",
"required": false
}
}
}
2 changes: 1 addition & 1 deletion apps/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@
"scripts": {
"build": "nest build",
"build:docker": "bunx prisma generate && nest build",
"db:generate": "bun run db:getschema && bunx prisma generate",
"db:generate": "bun run db:getschema && prisma generate",
"db:getschema": "node ../../packages/db/scripts/combine-schemas.js && cp ../../packages/db/dist/schema.prisma prisma/schema.prisma",
"db:migrate": "cd ../../packages/db && bunx prisma migrate dev && cd ../../apps/api",
"deploy:trigger-prod": "npx trigger.dev@4.0.6 deploy",
Expand Down
1 change: 0 additions & 1 deletion bun.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@
"deps:update": "syncpack update",
"deps:upgrade": "syncpack update && bun install",
"dev": "turbo dev --parallel",
"db:deploy": "bun --filter=@comp/db run db:deploy",
"db:generate": "turbo run db:generate --filter=@comp/app --filter=@comp/portal --filter=@comp/api",
"docker:clean": "bun run -F @comp/db docker:clean",
"docker:down": "bun run -F @comp/db docker:down",
Expand Down
1 change: 1 addition & 0 deletions packages/db/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
"build": "rm -rf dist && rm -rf ./prisma/generated && node scripts/combine-schemas.js && prisma generate --schema=dist/schema.prisma && tsc",
"check-types": "tsc --noEmit",
"db:generate": "node scripts/combine-schemas.js && prisma generate --schema=dist/schema.prisma",
"db:deploy": "prisma migrate deploy",
"db:migrate": "prisma migrate dev",
"db:migrate:reset": "prisma migrate reset",
"db:push": "prisma db push",
Expand Down