no error is showing but the live server is not git not pull. git server's latest code but the live server is not pulled.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @support
Welcome to the Bitbucket Cloud community! :)
May you please provide additional context? What does your pipeline configuration look like and what has been attempted already?
Cheers!
- Ben (Bitbucket Cloud Support)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
# bitbucket-pipelines.yml
image: atlassian/default-image:latest
pipelines:
branches:
dev: # This pipeline runs for the dev branch
- step:
name: Deploy to Linux Server
script:
# 1. Setup environment variables
- export SSH_HOST=${SSH_HOST}
- export SSH_USER=${SSH_USER}
- export DEPLOY_DIR=${DEPLOY_DIR}
- export DEPLOY_PASS=${DEPLOY_PASS}
# 2. Install sshpass and SSH client
- apt-get update && apt-get install -y sshpass openssh-client
# 3. Pull latest changes and set ownership
- sshpass -p "$DEPLOY_PASS" ssh -o StrictHostKeyChecking=no $SSH_USER@$SSH_HOST "
hostnamectl &&
echo "===================================================" &&
echo "hostnamectl command running successfully" &&
cd $DEPLOY_DIR &&
cp .env ../.env-bkp &&
echo "===================================================" &&
echo ".env file backed up to the user's home directory..." &&
pwd &&
git branch &&
git pull origin dev &&
echo "Code deployed successfully from bitbucket." &&
cp ../.env-bkp .env &&
echo ".env file reverted from the user's home directory..." &&
echo "=========================Finished=========================="
"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What is the error message you are seeing?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.