Commit 9c7c9c22 authored by Aryan Noshirvani's avatar Aryan Noshirvani

Update .gitlab-ci.yml

parent f887411d
Pipeline #1007 passed with stage
in 9 minutes and 35 seconds
...@@ -33,7 +33,7 @@ deploy_prod: ...@@ -33,7 +33,7 @@ deploy_prod:
before_script: before_script:
- apt-get update && apt-get install -y --no-install-recommends openssh-client bash - apt-get update && apt-get install -y --no-install-recommends openssh-client bash
script: script:
- echo "Deploying to Iran production server..." - echo "Deploying to production server..."
- ssh -o StrictHostKeyChecking=no -i /root/.ssh/id_ed25519 -p ${PROD_SSH_PORT:-2222} root@${PROD_SERVER_IP:-127.0.0.1} "cd /root/stax_backend_api && GIT_SSL_NO_VERIFY=true git pull origin main && source venv/bin/activate && pip install --prefer-binary -r requirements.txt && systemctl restart stax_backend" - ssh -o StrictHostKeyChecking=no -i /root/.ssh/id_ed25519 -p ${PROD_SSH_PORT:-2222} root@${PROD_SERVER_IP:-127.0.0.1} "cd /root/stax_backend_api && GIT_SSL_NO_VERIFY=true git pull origin main && source venv/bin/activate && pip install --prefer-binary -r requirements.txt && systemctl restart stax_backend"
only: only:
- main - main
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment