I want to make a pipeline in bitbucket for flask. Which can automatically deploy in ec2 instance.
I have tried below but it is troughing error of permission denied even i changed the permissions on remote server. And also cross checked the public keys on remote server and bitbucket.
branches:
main:
- step:
name: Deploy to Server
script:
- echo "Deploying to server"
# Add the server's SSH key to the list of known hosts
- pipe: atlassian/scp-deploy:1.5.0
variables:
USER: 'ubuntu'
SERVER: 'my remote server ip'
REMOTE_PATH: '.'
LOCAL_PATH: '.'
DEBUG: 'true'
And please add how to restart or start flask server from this pipeline.
Pipeline to transfer code on ec2 instance and restart the flask server
New contributor
Dharmendra Rathod is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.