File tree Expand file tree Collapse file tree 3 files changed +10
-5
lines changed
Expand file tree Collapse file tree 3 files changed +10
-5
lines changed Original file line number Diff line number Diff line change 11/* eslint-disable turbo/no-undeclared-env-vars */
2- import { PrismaClient } from "@trigger.dev/database" ;
2+
33import { integrationCatalog } from "../app/services/externalApis/integrationCatalog.server" ;
44import { seedCloud } from "./seedCloud" ;
5-
6- const prisma = new PrismaClient ( ) ;
5+ import { prisma } from "../app/db.server" ;
76
87async function seedIntegrationAuthMethods ( ) {
98 for ( const [ identifier , integration ] of Object . entries (
Original file line number Diff line number Diff line change 66app = " trigger-v2-fly-demo"
77primary_region = " lhr"
88
9+ [env ]
10+ PRIMARY_REGION = " lhr"
11+
912[build ]
1013 image = " ghcr.io/triggerdotdev/trigger.dev:latest"
1114
@@ -14,4 +17,4 @@ primary_region = "lhr"
1417 force_https = true
1518 auto_stop_machines = true
1619 auto_start_machines = true
17- min_machines_running = 0
20+ min_machines_running = 0
Original file line number Diff line number Diff line change 11#! /bin/sh
22set -x
33
4- scripts/wait-for-it.sh ${DATABASE_HOST} :5432 -- echo " database is up"
4+ if [ -n " $DATABASE_HOST " ]; then
5+ scripts/wait-for-it.sh ${DATABASE_HOST} -- echo " database is up"
6+ fi
7+
58npx prisma migrate deploy --schema /triggerdotdev/packages/database/prisma/schema.prisma
69npx ts-node@latest --transpile-only /triggerdotdev/apps/webapp/prisma/seed.ts
710npx turbo run start
You can’t perform that action at this time.
0 commit comments