DEV Community

Discussion on: Deploying NestJS Application: Easy and Explained

Collapse
 
ghana7989 profile image
ghana

Hey is there any free alternative for deployment?

Collapse
 
allanjeremy profile image
Allan N Jeremy • Edited

Hey, you can use Heroku with their free plan for a start.

Collapse
 
saralufi profile image
Sara Lufi

Sadly there is no more free plan in heroku :(

Thread Thread
 
thejscode profile image
Jaskirat Grewal

Yup that's true.

Try Vercel.

Thread Thread
 
saralufi profile image
Sara Lufi

There is no proper resource for deploying a NestJS application of Nx Monorepo

Thread Thread
 
korostelevm profile image
Michael Korostelev

Try Cyclic

Thread Thread
 
saralufi profile image
Sara Lufi

Is there any example for deploying NestJS application or any resource at all?

Thread Thread
 
saralufi profile image
Sara Lufi

Image description
I am keep getting this error

Thread Thread
 
zekejohn profile image
Zeke

I'm also trying to deploy a NestJS App @saralufi , did you ever get this to work? If not, what did you do? Any help / suggestions would really help me out, because i'm new to deploying apps and NestJS. Thanks!

Thread Thread
 
zekejohn profile image
Zeke

Ok so i tried deploying it and i am getting the same error as you :(
Image description

Thread Thread
 
zekejohn profile image
Zeke

I just got it to work! Removed some packages i didn't need and re wrote some of the code to use lighter weight dependencies, and now everything works!! 🥳 🥳

Thread Thread
 
paddymac profile image
Paddy McCallan

What port are you using for your main.ts? await app.listen(process.env.PORT || 3000); I'm not sure if cyclic has a specific port or not. It builds fine but get this when I try to access my api via swagger - [CYCLIC] ERROR: No response from server on port 3000