2016-01-07 12:28:15 +02:00
|
|
|
<?php
|
2016-01-11 12:51:59 +07:00
|
|
|
/* (c) Anton Medvedev <anton@medv.io>
|
2016-01-07 12:28:15 +02:00
|
|
|
*
|
|
|
|
* For the full copyright and license information, please view the LICENSE
|
|
|
|
* file that was distributed with this source code.
|
|
|
|
*/
|
|
|
|
|
|
|
|
require_once __DIR__ . '/symfony.php';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Symfony 3 Configuration
|
|
|
|
*/
|
2016-05-01 20:19:16 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Dump all assets to the filesystem
|
2016-05-01 20:21:27 +02:00
|
|
|
*
|
2016-05-01 20:19:16 +02:00
|
|
|
* This overrides the Symfony 2 assetic:dump command
|
|
|
|
* in favor of the new assets:install command.
|
|
|
|
*/
|
|
|
|
task('deploy:assetic:dump', function () {
|
|
|
|
if (!get('dump_assets')) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
run('{{bin/php}} {{release_path}}/' . trim(get('bin_dir'), '/') . '/console assets:install --env={{env}} --no-debug {{release_path}}/web');
|
|
|
|
})->desc('Dump assets');
|
2016-01-07 12:28:15 +02:00
|
|
|
|
|
|
|
// Symfony shared dirs
|
2016-02-29 08:19:23 +07:00
|
|
|
set('shared_dirs', ['var/logs', 'var/sessions']);
|
2016-01-07 12:28:15 +02:00
|
|
|
|
|
|
|
// Symfony writable dirs
|
2016-02-29 08:19:23 +07:00
|
|
|
set('writable_dirs', ['var/cache', 'var/logs', 'var/sessions']);
|
2016-01-07 12:28:15 +02:00
|
|
|
|
|
|
|
set('bin_dir', 'bin');
|
|
|
|
set('var_dir', 'var');
|