I have project in bitbucket that I want to deploy to ec2 instance in AWS . Here are the details :
1. I already have 1.2.3.4 ip address machine which hosts nodejs code , I have to manually ssh into this machine , do git pull origin main and then restart pm2 command
2. I want to do #1 on every main branch commit .