Skip to content

Commit f72f8c4

Browse files
authored
Merge pull request #1142 from trycompai/main
[comp] Production Deploy
2 parents 5ba042c + d85f5e8 commit f72f8c4

380 files changed

Lines changed: 2125 additions & 20202 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/database-migrations-main.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Database Migrations Dev
1+
name: Database Migrations Main
22
on:
33
push: # Runs AFTER merge to main (never during PR review!)
44
branches:
@@ -11,9 +11,18 @@ jobs:
1111
steps:
1212
- name: Checkout repository
1313
uses: actions/checkout@v4
14+
15+
- name: Setup Bun
16+
uses: oven-sh/setup-bun@v1
17+
with:
18+
bun-version: latest
19+
20+
- name: Install dependencies
21+
run: bun install
22+
1423
- name: Apply database migrations
1524
env:
1625
DATABASE_URL: ${{ secrets.DATABASE_URL_DEV }}
1726
run: |
1827
cd packages/db
19-
npx prisma migrate deploy
28+
bunx prisma migrate deploy

.github/workflows/database-migrations-release.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Database Migrations Prod
1+
name: Database Migrations Release
22
on:
33
push: # Runs AFTER merge to release (never during PR review!)
44
branches:
@@ -11,9 +11,18 @@ jobs:
1111
steps:
1212
- name: Checkout repository
1313
uses: actions/checkout@v4
14+
15+
- name: Setup Bun
16+
uses: oven-sh/setup-bun@v1
17+
with:
18+
bun-version: latest
19+
20+
- name: Install dependencies
21+
run: bun install
22+
1423
- name: Apply database migrations
1524
env:
1625
DATABASE_URL: ${{ secrets.DATABASE_URL_PROD }}
1726
run: |
1827
cd packages/db
19-
npx prisma migrate deploy
28+
bunx prisma migrate deploy

.github/workflows/trigger-tasks-deploy-main.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,11 @@ jobs:
2424
run: bunx prisma generate
2525
- name: 🚀 Deploy Trigger.dev
2626
working-directory: ./apps/app
27+
timeout-minutes: 20
2728
env:
2829
TRIGGER_ACCESS_TOKEN: ${{ secrets.TRIGGER_ACCESS_TOKEN }}
2930
SECRET_KEY: ${{ secrets.SECRET_KEY }}
3031
VERCEL_ACCESS_TOKEN: ${{ secrets.VERCEL_ACCESS_TOKEN }}
3132
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
3233
VERCEL_TEAM_ID: ${{ secrets.VERCEL_TEAM_ID }}
33-
run: bunx trigger.dev@latest deploy --env staging
34+
run: bunx trigger.dev@latest deploy --env staging --log-level debug

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,4 +78,7 @@ debug-setup-page.png
7878

7979
.playground/
8080

81-
packages/*/dist
81+
packages/*/dist
82+
83+
# Generated Prisma Client
84+
**/src/db/generated/

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ WORKDIR /app
3636
COPY packages/db/prisma ./packages/db/prisma
3737

3838
# Create minimal package.json for Prisma
39-
RUN echo '{"name":"migrator","type":"module","dependencies":{"prisma":"^6.9.0","@prisma/client":"^6.9.0"}}' > package.json
39+
RUN echo '{"name":"migrator","type":"module","dependencies":{"prisma":"^6.13.0","@prisma/client":"^6.13.0"}}' > package.json
4040

4141
# Install ONLY Prisma dependencies
4242
RUN bun install

apps/app/.eslintrc.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
{
2-
"extends": "next/core-web-vitals",
2+
"extends": ["next/core-web-vitals"],
3+
"ignorePatterns": ["src/db/generated/**"],
34
"rules": {
4-
"react/no-unescaped-entities": "off",
5+
"react-hooks/rules-of-hooks": "error",
56
"react-hooks/exhaustive-deps": "warn",
6-
"react-hooks/rules-of-hooks": "warn",
7+
"react/no-unescaped-entities": "off",
78
"react/display-name": "off"
89
}
910
}

apps/app/.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,8 @@ next-env.d.ts
4949

5050
# Sentry Config File
5151
.env.sentry-build-plugin
52+
53+
# Generated Prisma Client
54+
prisma/generated
55+
# Copied schema from @trycompai/db package - always generate fresh
56+
prisma/schema.prisma

apps/app/.prettierignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
# Playwright test artifacts
22
playwright-report/
33
test-results/
4-
.playwright/
4+
.playwright/
5+
6+
# Generated Prisma Client
7+
src/db/generated/

0 commit comments

Comments
 (0)