Deploying a NestJS app

Hey there.

I built a REST API using NestJS and I would like to deploy it using fly.io. I followed the steps in the quickstart guide and a Dockerfile and fly.toml file were created automatically for me. It seems that fly has treated my app as a regular express app and created the files accordingly. What can I change to make this deploy properly?

Presently, when I run fly deploy, I get an error message saying

#11 10.17 sh: 1: nest: not found
------
Error failed to fetch an image or build from source: error building: executor failed running [/bin/sh -c npm install && npm run build]: exit code: 127

I am also linking my repo below in case you need it.

Thanks

1 Like