The following tasks are part of the development tools, to simplify the local development and release process.
Sync local application with the remote instance.
$ dep dev:sync localReset local branch for further development.
$ dep dev:tr local [--no-db-sync] [--cache-db]Use cache-db to cache the database for 1 day after syncing it. Useful for large databases and to reduce load in the source system.
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.
$ dep dev:dump localImport the local database by an sql dump. This task is used by dev:tr with --cache-db option import the once-per-day sql dump.
$ dep dev:import localThis task combines multiple steps to automate the release preparation.
Start the new release task.
$ dep dev:release localDefine the new release number within the prompt or use --new-version=1.2.3.
This includes the following steps:
- Tabula Rasa (reset local state)
- Start new release
- Custom steps
- Composer updates (App & CI)
- NPM updates
- QS (PHP & NPM)
- Tests (Acceptance)
You can extend or overwrite or disabled these steps, e.g.
task('dev:release:test:acceptance')->addAfter(function() {
runLocally('echo hello world')
});
task('dev:release:qa:npm')->disable();Use the following command to reset the new release branch (in case of an occurring error):
$ dep dev:release:reset localUse the following command to finish the new release branch by checking out the default branch and creating the new release version:
$ dep dev:release:finish localAlways check the automated created git commits before pushing them.
See the default config set.php to adjust the release process to your needs.
Hint: Use the following command to link your git user into the ddev container.
ln -s ~/.gitconfig ~/.ddev/homeadditions/.gitconfig