mirror of
https://github.com/deployphp/deployer.git
synced 2025-02-24 09:12:51 +01:00
Merge pull request #499 from piotrantosik/feature/419
Flag for assetic:dump task #419
This commit is contained in:
commit
58e5c4123e
@ -22,6 +22,8 @@ set('writable_dirs', ['app/cache', 'app/logs']);
|
||||
|
||||
// Assets
|
||||
set('assets', ['web/css', 'web/images', 'web/js']);
|
||||
// Default true - BC for Symfony < 3.0
|
||||
set('dump_assets', true);
|
||||
|
||||
// Environment vars
|
||||
env('env_vars', 'SYMFONY_ENV=prod');
|
||||
@ -68,6 +70,9 @@ task('deploy:assets', function () {
|
||||
* Dump all assets to the filesystem
|
||||
*/
|
||||
task('deploy:assetic:dump', function () {
|
||||
if (!get('dump_assets')) {
|
||||
return;
|
||||
}
|
||||
|
||||
run('php {{release_path}}/' . trim(get('bin_dir'), '/') . '/console assetic:dump --env={{env}} --no-debug');
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user