nestjs app will not start via Dockerfile + cmd

Project ID: 35c2c647-0f2a-44db-a175-d671a74cb289 Application tries to start and just loops:
+ echo Deploying Prisma migrations...

Deploying Prisma migrations...

+ yarn prisma migrate deploy

Prisma schema loaded from prisma/schema.prisma

Datasource "db": PostgreSQL database "railway", schema "public" at "postgres.railway.internal:5432"

19 migrations found in prisma/migrations

No pending migrations to apply.

Starting the application...

+ echo Starting the application...

+ yarn start

Deploying Prisma migrations...

+ echo Deploying Prisma migrations...

+ yarn prisma migrate deploy

Prisma schema loaded from prisma/schema.prisma

Datasource "db": PostgreSQL database "railway", schema "public" at "postgres.railway.internal:5432"

19 migrations found in prisma/migrations

No pending migrations to apply.

+ echo Starting the application...

Starting the application...

+ yarn start

Deploying Prisma migrations...

+ echo Deploying Prisma migrations...

+ yarn prisma migrate deploy

Prisma schema loaded from prisma/schema.prisma

Datasource "db": PostgreSQL database "railway", schema "public" at "postgres.railway.internal:5432"

19 migrations found in prisma/migrations

No pending migrations to apply.

+ echo Starting the application...

Starting the application...

+ yarn start
+ echo Deploying Prisma migrations...

Deploying Prisma migrations...

+ yarn prisma migrate deploy

Prisma schema loaded from prisma/schema.prisma

Datasource "db": PostgreSQL database "railway", schema "public" at "postgres.railway.internal:5432"

19 migrations found in prisma/migrations

No pending migrations to apply.

Starting the application...

+ echo Starting the application...

+ yarn start

Deploying Prisma migrations...

+ echo Deploying Prisma migrations...

+ yarn prisma migrate deploy

Prisma schema loaded from prisma/schema.prisma

Datasource "db": PostgreSQL database "railway", schema "public" at "postgres.railway.internal:5432"

19 migrations found in prisma/migrations

No pending migrations to apply.

+ echo Starting the application...

Starting the application...

+ yarn start

Deploying Prisma migrations...

+ echo Deploying Prisma migrations...

+ yarn prisma migrate deploy

Prisma schema loaded from prisma/schema.prisma

Datasource "db": PostgreSQL database "railway", schema "public" at "postgres.railway.internal:5432"

19 migrations found in prisma/migrations

No pending migrations to apply.

+ echo Starting the application...

Starting the application...

+ yarn start
Solution:
its possible that theres a memory spike that tries to use more than 512mb, you just dont see it on the graph since it doesnt report that fast
Jump to solution
19 Replies
Percy
Percy11mo ago
Project ID: 35c2c647-0f2a-44db-a175-d671a74cb289
Brody
Brody11mo ago
at first glance it looks like your app is silently crashing one reason may be an out of memory crash, what do your memory metrics look like
drüdrüdrü
drüdrüdrü11mo ago
Yeah, I've been trying to get this app up for days 😓 thanks for the quick response
drüdrüdrü
drüdrüdrü11mo ago
No description
Brody
Brody11mo ago
send the dockerfile?
drüdrüdrü
drüdrüdrü11mo ago
I've rewritten it so many times I'll pull it, one second
drüdrüdrü
drüdrüdrü11mo ago
This is the latest iteration
drüdrüdrü
drüdrüdrü11mo ago
Here is the script to start the app
drüdrüdrü
drüdrüdrü11mo ago
I was going to try with Nixpack.. but this seems like a whole other process.
Brody
Brody11mo ago
does this dockerfile work locally?
drüdrüdrü
drüdrüdrü11mo ago
Yes
Solution
Brody
Brody11mo ago
its possible that theres a memory spike that tries to use more than 512mb, you just dont see it on the graph since it doesnt report that fast
Brody
Brody11mo ago
can you try upgrading to the hobby plan?
drüdrüdrü
drüdrüdrü11mo ago
This is local docker stats. You might be right
No description
Brody
Brody11mo ago
yep looks like it needs much more than 512mb at the start
Want results from more Discord servers?
Add your server