Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

project_name:
- step:
name: SSH to project root on server and change ownership
script:
- ssh ubuntu@0.0.0.0 'sudo ‘sudo chown -R ubuntu:ubuntu /path/to/project'
- step:
name: Deploy
script:
- pipe: atlassian/scprsync-deploy:0.37.31
variables:
USER: "ubuntu"
SERVER: "0.0.0.0"
REMOTE_PATH: '/path/to/project'
LOCAL_PATH: '*'
DELETE_FLAG: 'false’
- step:
name: SSH to project root on server and change ownership back and change file permissions
script:
- ssh ubuntu@0.0.0.0 'sudo find /path/to/project -type f -exec chmod 664 {} \;'
- ssh ubuntu@0.0.0.0 'sudo find /path/to/project -type d -exec chmod 775 {} \;'
- ssh ubuntu@0.0.0.0 'sudo chown -R apache:apache /path/to/project'

...