DEV Community

Discussion on: Deploying a NestJS Application on AWS Beanstalk

Collapse
 
mcmilwj profile image
Bill McMilleon • Edited

Doesn't your *.ts (from src folder) transpile into *.js into the dist folder? This would mean your command "node dist/main.js" for starting up prod should instead be "node src/main.js" right?

Still struggling deploying my webapp as a PAAS webapp on Azure, so grain of salt, etc.

Collapse
 
antogarand profile image
Antony Garand

Yes, this is correct, if you use start:prod as launch command!

I found it easier to tell beanstalk to manually launch node src/main.js than modifying the package.json at the time, but modifying it would definitely be the better solution.