DEV Community

Discussion on: Complete Setup for Deploying Nodejs App with mongodb database on Amazon ec2

Collapse
 
kameshkarthi profile image
kameshkarthi

How edit app.js in vscode? or where the files are stored?

Collapse
 
sunilmore690 profile image
Sunil More

You need to use vi to edit app.js as you can access ec2 instance only through terminal

Collapse
 
kameshkarthi profile image
kameshkarthi

Thank you for your reply....how to push changes in code without restarting server(app.js)???

Thread Thread
 
sunilmore690 profile image
Sunil More

Hi

I don't think so it's valid scenario and it's not possible

As if you did some code changes , to reflect those changes you need restart the server

According to me there is no way to push changes in code without restarting except if static data like images,css etc