@@ -8,25 +8,25 @@ |
||
8 | 8 | |
9 | 9 | add('writable_dirs', ['public/uploads']); |
10 | 10 | |
11 | -set('bin/websiteconsole', function () { |
|
11 | +set('bin/websiteconsole', function() { |
|
12 | 12 | return parse('{{bin/php}} {{release_path}}/bin/websiteconsole --no-interaction'); |
13 | 13 | }); |
14 | 14 | |
15 | 15 | desc('Migrate PHPCR'); |
16 | 16 | task( |
17 | 17 | 'phpcr:migrate', |
18 | - function () { |
|
18 | + function() { |
|
19 | 19 | run('{{bin/php}} {{bin/console}} phpcr:migrations:migrate'); |
20 | 20 | } |
21 | 21 | ); |
22 | 22 | |
23 | 23 | desc('Clear cache'); |
24 | -task('deploy:website:cache:clear', function () { |
|
24 | +task('deploy:website:cache:clear', function() { |
|
25 | 25 | run('{{bin/websiteconsole}} cache:clear --no-warmup'); |
26 | 26 | }); |
27 | 27 | |
28 | 28 | desc('Warm up cache'); |
29 | -task('deploy:website:cache:warmup', function () { |
|
29 | +task('deploy:website:cache:warmup', function() { |
|
30 | 30 | run('{{bin/websiteconsole}} cache:warmup'); |
31 | 31 | }); |
32 | 32 |
@@ -19,7 +19,7 @@ |
||
19 | 19 | /** |
20 | 20 | * Run migrations |
21 | 21 | */ |
22 | -task('deploy:run_migrations', function () { |
|
22 | +task('deploy:run_migrations', function() { |
|
23 | 23 | run('{{bin/php}} {{release_path}}/yii migrate up --interactive=0'); |
24 | 24 | })->desc('Run migrations'); |
25 | 25 |
@@ -35,14 +35,14 @@ |
||
35 | 35 | /** |
36 | 36 | * Initialization |
37 | 37 | */ |
38 | -task('deploy:init', function () { |
|
38 | +task('deploy:init', function() { |
|
39 | 39 | run('{{bin/php}} {{release_path}}/init --env=Production --overwrite=n'); |
40 | 40 | })->desc('Initialization'); |
41 | 41 | |
42 | 42 | /** |
43 | 43 | * Run migrations |
44 | 44 | */ |
45 | -task('deploy:run_migrations', function () { |
|
45 | +task('deploy:run_migrations', function() { |
|
46 | 46 | run('{{bin/php}} {{release_path}}/yii migrate up --interactive=0'); |
47 | 47 | })->desc('Run migrations'); |
48 | 48 |
@@ -8,7 +8,7 @@ |
||
8 | 8 | namespace Deployer; |
9 | 9 | |
10 | 10 | desc('Copy directories'); |
11 | -task('deploy:copy_dirs', function () { |
|
11 | +task('deploy:copy_dirs', function() { |
|
12 | 12 | if (has('previous_release')) { |
13 | 13 | foreach (get('copy_dirs') as $dir) { |
14 | 14 | if (test("[ -d {{previous_release}}/$dir ]")) { |
@@ -8,7 +8,7 @@ |
||
8 | 8 | namespace Deployer; |
9 | 9 | |
10 | 10 | desc('Cleaning up files and/or directories'); |
11 | -task('deploy:clear_paths', function () { |
|
11 | +task('deploy:clear_paths', function() { |
|
12 | 12 | $paths = get('clear_paths'); |
13 | 13 | $sudo = get('clear_use_sudo') ? 'sudo' : ''; |
14 | 14 | $batch = 100; |
@@ -8,7 +8,7 @@ |
||
8 | 8 | namespace Deployer; |
9 | 9 | |
10 | 10 | desc('Cleaning up old releases'); |
11 | -task('deploy:cleanup', function () { |
|
11 | +task('deploy:cleanup', function() { |
|
12 | 12 | $releases = get('releases_list'); |
13 | 13 | $keep = get('keep_releases'); |
14 | 14 | $runOpts = []; |
@@ -8,7 +8,7 @@ |
||
8 | 8 | namespace Deployer; |
9 | 9 | |
10 | 10 | desc('Creating symlink to release'); |
11 | -task('deploy:symlink', function () { |
|
11 | +task('deploy:symlink', function() { |
|
12 | 12 | if (get('use_atomic_symlink')) { |
13 | 13 | run("mv -T {{deploy_path}}/release {{deploy_path}}/current"); |
14 | 14 | } else { |
@@ -10,7 +10,7 @@ |
||
10 | 10 | use Deployer\Exception\Exception; |
11 | 11 | |
12 | 12 | desc('Rollback to previous release'); |
13 | -task('rollback', function () { |
|
13 | +task('rollback', function() { |
|
14 | 14 | $releases = get('releases_list'); |
15 | 15 | |
16 | 16 | if (isset($releases[1])) { |
@@ -8,7 +8,7 @@ |
||
8 | 8 | namespace Deployer; |
9 | 9 | |
10 | 10 | desc('Installing vendors'); |
11 | -task('deploy:vendors', function () { |
|
11 | +task('deploy:vendors', function() { |
|
12 | 12 | if (!commandExist('unzip')) { |
13 | 13 | warning('To speed up composer installation setup "unzip" command with PHP zip extension.'); |
14 | 14 | } |