Cannot reach my route even after successful deployment of my node app on render?

I am trying to deploy my node application on render.com. Here is the folder structure:

kneedup3.0-backend
    -dist
    -prisma
    -src
    -package.json

I was trying to deploy my app in the web service section.

I filled the sections as npm install && tsc for build and node dist/index.js for start.
I then added my environment variable and click on deploy.

Here is my deploy result:

Feb 14 01:10:58 PM  ==> Cloning from https://github.com/pawan-kr1997/kneedup3.0-backend...
Feb 14 01:10:59 PM  ==> Checking out commit c42b8e2900d7ff05f811d14e74cdc5739023010f in branch main
Feb 14 01:11:04 PM  ==> Running build command 'npm install && tsc'...
Feb 14 01:11:15 PM  
Feb 14 01:11:15 PM  > prisma@4.4.0 preinstall /opt/render/project/src/node_modules/prisma
Feb 14 01:11:15 PM  > node scripts/preinstall-entry.js
Feb 14 01:11:15 PM  
Feb 14 01:11:15 PM  
Feb 14 01:11:15 PM  > prisma@4.4.0 install /opt/render/project/src/node_modules/prisma
Feb 14 01:11:15 PM  > node scripts/install-entry.js
Feb 14 01:11:15 PM  
Feb 14 01:11:15 PM  
Feb 14 01:11:15 PM  > @prisma/engines@4.4.0 postinstall /opt/render/project/src/node_modules/@prisma/engines
Feb 14 01:11:15 PM  > node scripts/postinstall.js
Feb 14 01:11:15 PM  
Feb 14 01:11:17 PM  
Feb 14 01:11:17 PM  > core-js@2.6.12 postinstall /opt/render/project/src/node_modules/core-js
Feb 14 01:11:17 PM  > node -e "try{require('./postinstall')}catch(e){}"
Feb 14 01:11:17 PM  
Feb 14 01:11:17 PM  
Feb 14 01:11:17 PM  > @prisma/client@4.4.0 postinstall /opt/render/project/src/node_modules/@prisma/client
Feb 14 01:11:17 PM  > node scripts/postinstall.js
Feb 14 01:11:17 PM  
Feb 14 01:11:19 PM  Prisma schema loaded from prisma/schema.prisma
Feb 14 01:11:21 PM  
Feb 14 01:11:21 PM  โœ” Generated Prisma Client (4.4.0 | library) to ./node_modules/@prisma/client in 185ms
Feb 14 01:11:21 PM  You can now start using Prisma Client in your code. Reference: https://pris.ly/d/client
Feb 14 01:11:21 PM  ```
Feb 14 01:11:21 PM  import { PrismaClient } from '@prisma/client'
Feb 14 01:11:21 PM  const prisma = new PrismaClient()
Feb 14 01:11:21 PM  ```
Feb 14 01:11:21 PM  added 324 packages from 417 contributors and audited 326 packages in 16.451s
Feb 14 01:11:21 PM  
Feb 14 01:11:21 PM  32 packages are looking for funding
Feb 14 01:11:21 PM    run `npm fund` for details
Feb 14 01:11:21 PM  
Feb 14 01:11:21 PM  found 19 vulnerabilities (1 low, 8 moderate, 8 high, 2 critical)
Feb 14 01:11:21 PM    run `npm audit fix` to fix them, or `npm audit` for details
Feb 14 01:11:27 PM  ==> Generating container image from build. This may take a few minutes...
Feb 14 01:12:56 PM  ==> Uploading build...
Feb 14 01:13:33 PM  ==> Build uploaded in 26s
Feb 14 01:13:34 PM  ==> Build successful ๐ŸŽ‰
Feb 14 01:13:34 PM  ==> Deploying...
Feb 14 01:13:59 PM  ==> Starting service with 'node dist/index.js'
Feb 14 01:14:05 PM  listening for port 8090

I could see that there was no error in deployment. But when I try to hit the route I get a blank screen saying cannot get [[ my provided route]].

Here is the link to the repo: GitHub - pawan-kr1997/kneedup3.0-backend

Please guide. Am I missing any code which needs to be added?

Hi,

It looks like your root path is serving a static file, you may need to check the paths to the files are referenced correctly.

Alan

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.