DEV Community

Discussion on: Node.js app continuous deployment with AWS, PM2, and Github Actions.

Collapse
 
lukasborawski profile image
Lukas Borawski

Hi there. So you should put the ecosystem file in the root folder of your machine. A deployment script can be placed inside the app folder. You can see that inside of it the ecosystem file is copied and used as local. Cheers.

Collapse
 
fazi profile image
Muhammad Abdul Rehman

So i make the ecosystem file in my root foler anywhere or probably /etc folder

and the deployment script in the app folder and that app is on my digital ocean droplet

right?

Thread Thread
 
lukasborawski profile image
Lukas Borawski

No, not in the etc, in your Ubuntu user root folder. Typically it’s the place when you’re legged in on start.

Thread Thread
 
fazi profile image
Muhammad Abdul Rehman

Well sir i am doing it for the first time there are multiple things i dont understand I wish i could share my scree and ask you help to learn it

Thread Thread
 
fazi profile image
Muhammad Abdul Rehman

I am trying to comprehend it