Skip to main content
Version: 7.x

contao

Source

Configuration

public_path

Source

Overrides public_path from recipe/provision/website.php.

The public path is the path to be set as DocumentRoot and is defined in the composer.json of the project but defaults to public from Contao 5.0 on. This path is relative from the current_path, see recipe/provision/website.php.

bin/console

Source

Overrides bin/console from recipe/symfony.php.

contao_version

Source

Tasks

contao:migrate

Source

Run Contao migrations.

This task updates the database. A database backup is saved automatically as a default.

To automatically drop the obsolete database structures, you can override the task as follows:

task('contao:migrate', function () {
run('{{bin/php}} {{bin/console}} contao:migrate --with-deletes {{console_options}}');
});

contao:manager:download

Source

Download the Contao Manager.

Downloads the contao-manager.phar.php into the public path.

contao:install:lock

Source

Lock the Contao Install Tool.

Locks the Contao install tool which is useful if you don't use it.

contao:manager:lock

Source

Lock the Contao Manager.

Locks the Contao Manager which is useful if you only need the API of the Manager rather than the UI.

contao:maintenance:enable

Source

Enable maintenance mode.

contao:maintenance:disable

Source

Disable maintenance mode.

deploy

Source

Deploy the project.

This task is group task which contains next tasks:



Support Deployer ❤️

Hello, my name is Anton Medvedev (@antonmedv). I'm the creator of the Deployer.
I maintain this open source project in my spare time.
Supporters on GitHub give me extra motivation to work on the project.