@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | ->set('deploy_path', '/var/www/trackr.moe'); |
44 | 44 | |
45 | 45 | // Tasks |
46 | -task('build', function () { |
|
46 | +task('build', function() { |
|
47 | 47 | run('cd {{release_path}} && build'); |
48 | 48 | }); |
49 | 49 | |
@@ -90,15 +90,15 @@ discard block |
||
90 | 90 | }); |
91 | 91 | after('deploy:vendors', 'deploy:compile_assets'); |
92 | 92 | |
93 | -task('deploy:copy_files', function () { |
|
93 | +task('deploy:copy_files', function() { |
|
94 | 94 | $sharedPath = '{{deploy_path}}/shared'; |
95 | - foreach (get('copy_files') as $file) { |
|
95 | + foreach(get('copy_files') as $file) { |
|
96 | 96 | $dirname = dirname(parse($file)); |
97 | 97 | // Create dir of shared file |
98 | - run("mkdir -p $sharedPath/" . $dirname); |
|
98 | + run("mkdir -p $sharedPath/".$dirname); |
|
99 | 99 | // Check if shared file does not exist in shared. |
100 | 100 | // and file exist in release |
101 | - if (!test("[ -f $sharedPath/$file ]") && test("[ -f {{release_path}}/$file ]")) { |
|
101 | + if(!test("[ -f $sharedPath/$file ]") && test("[ -f {{release_path}}/$file ]")) { |
|
102 | 102 | // Copy file in shared dir if not present |
103 | 103 | run("cp -rv {{release_path}}/$file $sharedPath/$file"); |
104 | 104 | } |