You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
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.