Skip to content

Latest commit

 

History

History
101 lines (70 loc) · 2.64 KB

File metadata and controls

101 lines (70 loc) · 2.64 KB

Dev Tools

The following tasks are part of the development tools, to simplify the local development and release process.

dev:sync

Sync local application with the remote instance.

$ dep dev:sync local

dev:tr

Reset 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.

dev:dump

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 local

dev:import

Import 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 local

dev:release

This task combines multiple steps to automate the release preparation.

Start the new release task.

$ dep dev:release local

Define the new release number within the prompt or use --new-version=1.2.3.

This includes the following steps:

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 local

Use 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 local

General advices

Always 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