Fixed gitlab-ci

This commit is contained in:
Roger Gonzalez 2023-05-14 11:42:57 -03:00
parent 92eccd8b83
commit dc8774d793
Signed by: rogs
GPG Key ID: C7ECE9C6C36EC2E6

View File

@ -11,6 +11,6 @@ deploy:
- ssh-keyscan $SSH_HOST >> ~/.ssh/known_hosts - ssh-keyscan $SSH_HOST >> ~/.ssh/known_hosts
- chmod 644 ~/.ssh/known_hosts - chmod 644 ~/.ssh/known_hosts
script: script:
- ssh -p $SSH_PORT $SSH_USER@$SSH_HOST "cd repo && git stash && git pull --force origin master && pip install -r requirements.txt && systemctl restart theinfinitewebsite" - ssh -p $SSH_PORT $SSH_USER@$SSH_HOST "cd repo && git stash && git pull --force origin master && ./.venv/bin/pip install -r requirements.txt && systemctl restart theinfinitewebsite"
only: only:
- master - master