Skip to content

Commit

Permalink
Added information for sync client changes
Browse files Browse the repository at this point in the history
  • Loading branch information
udaltsovra committed Oct 11, 2023
1 parent d2a6bbe commit f0c1b00
Showing 1 changed file with 20 additions and 4 deletions.
24 changes: 20 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,16 +149,15 @@ jobs:
hosts: all
vars:
ansistrano_keep_releases: 10
ansistrano_deploy_from: "{{ playbook_dir }}/.."
ansistrano_deploy_from: "{{ playbook_dir }}/../.."
ansistrano_deploy_to: "{{ deploy_path }}"
ansistrano_git_repo: "{{ deploy_repo }}"
ansistrano_git_branch: "{{ deploy_branch }}"
ansistrano_deploy_via: "git"
ansistrano_deploy_via: "rsync"
ansistrano_rsync_set_remote_user: yes
ansistrano_git_depth: 1
ansistrano_shared_paths:
- wp-content/uploads
- .well-known
- cgi-bin
ansistrano_shared_files:
- wp-config.php
- .htaccess
Expand All @@ -177,6 +176,8 @@ jobs:
`ansistrano_deploy_via` deployment strategy - method used to deliver code. Options are copy, download, git, rsync, rsync_direct, svn, or s3.
`ansistrano_rsync_set_remote_user` allows the use of the module synchronize of ansible. See official [docs](https://docs.ansible.com/ansible/latest/collections/ansible/posix/synchronize_module.html)
`ansistrano_git_depth` additional history truncated to the specified number or revisions
`ansistrano_shared_paths` shared folders, usually folders with images or other bulk data
Expand Down Expand Up @@ -226,3 +227,18 @@ jobs:
```
More information for adnsistrano playbook in official [docs](https://github.com/ansistrano/deploy/blob/master/README.md)
### Synchronization of client changes
In the process of working with the website, the client can install, change settings and add modules using the Wordpress web interface.
In order for these changes to appear in the repository, it is necessary to commit from the `current` folder, i.e. perform the following actions (for the example described above):
```bash
cd ~/deploy/current
```
```bash
git add . && \
git commit -m 'Commit message' && \
git push
```

0 comments on commit f0c1b00

Please sign in to comment.