I deploy using Bitbucket and AWS CodeDeploy. I have 1 EC2 instance which hosts several websites (staging and production). I also have 2 branches in Bitbucket, develop and master. I configured Bitbucket to deploy to develop and I want the files to go to /var/www/vhosts/staging.com/httpdocs/ directory and when I deploy to master, files should go to /var/www/vhosts/production.com/httpdocs/ directory on the EC2 instance.
I'm only using 1 deployment group.
How can I achieve this?