@@ -108,15 +108,15 @@ discard block |
||
| 108 | 108 | after('deploy:vendors', 'deploy:compile_assets'); |
| 109 | 109 | after('deploy:vendors', 'deploy:clear_paths'); |
| 110 | 110 | |
| 111 | -task('deploy:copy_files', function () { |
|
| 111 | +task('deploy:copy_files', function() { |
|
| 112 | 112 | $sharedPath = '{{deploy_path}}/shared'; |
| 113 | - foreach (get('copy_files') as $file) { |
|
| 113 | + foreach(get('copy_files') as $file) { |
|
| 114 | 114 | $dirname = dirname(parse($file)); |
| 115 | 115 | // Create dir of shared file |
| 116 | - run("mkdir -p $sharedPath/" . $dirname); |
|
| 116 | + run("mkdir -p $sharedPath/".$dirname); |
|
| 117 | 117 | // Check if shared file does not exist in shared. |
| 118 | 118 | // and file exist in release |
| 119 | - if (!test("[ -f $sharedPath/$file ]") && test("[ -f {{release_path}}/$file ]")) { |
|
| 119 | + if(!test("[ -f $sharedPath/$file ]") && test("[ -f {{release_path}}/$file ]")) { |
|
| 120 | 120 | // Copy file in shared dir if not present |
| 121 | 121 | run("cp -rv {{release_path}}/$file $sharedPath/$file"); |
| 122 | 122 | } |
@@ -132,7 +132,7 @@ discard block |
||
| 132 | 132 | }); |
| 133 | 133 | after('deploy:shared', 'deploy:copy_files'); |
| 134 | 134 | |
| 135 | -task('deploy:migrate_db', function () { |
|
| 135 | +task('deploy:migrate_db', function() { |
|
| 136 | 136 | // Migration is disabled by default on production, so we need to toggle it temporally. |
| 137 | 137 | run('( \ |
| 138 | 138 | cd {{release_path}} && \ |