i am stuck on a step it is after my pipeline runs successful my whole project gets overwrite by new push done by my pipeline i am not able to run it automatically with my pm2 reload command whenever changes are done i just have to setup my python fastapi project manually can some one help me. how can i run my pyhton fastapi project with the help of my pipeline without dong it manually everytime.
suggest me changes need to required.
G'day @Siddhant Pandey
rsync will sync files and directories between two hosts or machines. So, if you use rsync to deploy to your server, it will sync everything in bitbucket over to your server.
So, if you don't want your server files to be overwritten by rsync, my suggestion is to check the following guide:
Use these options to exclude specific files or directories from being overwritten when you sync from Bitbucket to your server. Example usage in Rsync pipe:
script: - pipe: atlassian/rsync-deploy:0.10.0 variables: USER: 'ec2-user' SERVER: '127.0.0.1' REMOTE_PATH: '/var/www/build/' LOCAL_PATH: 'build' DEBUG: 'true' EXTRA_ARGS: '--exclude=*.txt'
This pipe will exclude all *.txt files in your server from being overwritten.
Regards,
Syahrul
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.