You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 06a0fb0
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: docs/DEV.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,7 +29,9 @@ Use `cache-db` to cache the database for 1 day after syncing it. Useful for larg
29
29
<aname="dump"></a>
30
30
## dev:dump
31
31
32
-
Dump the local database to an sql file. This task is used by `dev:tr` with `--cache-db` option set to create a once-per-day sql dump.
32
+
Dump the database of the sync source (see `dev_db_sync_tool_default_sync`) to an sql file. This task is used by `dev:tr` with `--cache-db` option set to create a once-per-day sql dump. The dump is kept in `dev_tr_db_dump_dir` as `<date>.sql` with the legacy db-sync-tool and as `<date>.sql.gz` with php-sync-tool, which compresses it.
33
+
34
+
php-sync-tool also leaves its copy of the dump in the dump directory of the source (default `/tmp/`) and only removes old dumps with its own file name prefix. Clean up the directory there or point `dump_dir` in the sync configuration to a directory that is cleaned regularly.
The MS Teams webhook comes from `msteams_webhook` or the environment variable `DEPLOYER_CONFIG_NOTIFICATION_MSTEAMS_WEBHOOK`. A missing webhook or a request that cannot be sent only logs a warning, the deployment is not failed.
166
166
167
167
### Synchronization
168
-
The `feature:sync` command synchronizes the feature branch instance with data from a different instance using the [db-sync-tool](https://github.com/jackd248/db-sync-tool).
168
+
The `feature:sync` command synchronizes the feature branch instance with data from a different instance using [php-sync-tool](https://github.com/konradmichalik/php-sync-tool) or the legacy [db-sync-tool](https://github.com/jackd248/db-sync-tool) (see the [prerequisites](#prerequirements)).
169
169
170
-
You need to configure the paths within your `deploy.php` to the db-sync-tool configuration files:
170
+
You need to configure the paths within your `deploy.php` to the sync configuration files:
171
171
172
172
```php
173
173
# general sync configuration file for feature branches
Having an optionally entry `files` in your sync configuration (e.g. [sync-stage-to-feature.yaml](../deployer/feature/example/.deployment/db-sync-tool/sync-stage-to-feature.yaml#17)) enables the [file-sync-tool](https://github.com/jackd248/file-sync-tool) for a simple file synchronisation feature.
181
+
Having an optionally entry `files` in your sync configuration (e.g. [sync-stage-to-feature.yaml](../deployer/feature/example/.deployment/db-sync-tool/sync-stage-to-feature.yaml#17)) enables a simple file synchronisation. php-sync-tool does it within the same call (`--with-files`), the legacy tools with the separate [file-sync-tool](https://github.com/jackd248/file-sync-tool).
182
182
183
183
It's possible to override db_sync or file_sync command (setting it to false disables the feature):
184
184
```php
185
185
# disables db_sync feature entirely
186
186
set('db_sync_tool', false);
187
-
# disables file_sync feature entirely
187
+
# disables file_sync feature entirely (with php-sync-tool no --with-files)
0 commit comments