Non-Zero Exit when deploying NestJS in App Containers

Posted September 11, 2021 93 views
Node.jsDigitalOcean Managed MySQL DatabaseDigitalOcean App Platform

I want to deploy my NestJS in DigitalOcean App Containers. I have Database running in DigitalOcean and I want to point my NestJS to that Database. I use this following configuration:

Build script: npm run build <cross-env NODE_ENV=production nest build>
Run script: npm run start:prod <node dist/src/main>

I have specified my DigitalOcean Database in app spec env too. When building the app, it stuck on Downloading and Extracting Node v14.17.6 and stopping after some time stating Build Error: Non-Zero Exit. Can someone provide me guidance? Or something like that? Thank you

Submit an answer

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!