@@ -106,15 +106,15 @@ discard block |
||
| 106 | 106 | )'); |
| 107 | 107 | }); |
| 108 | 108 | |
| 109 | -task('deploy:copy_files', function () { |
|
| 109 | +task('deploy:copy_files', function() { |
|
| 110 | 110 | $sharedPath = '{{deploy_path}}/shared'; |
| 111 | - foreach (get('copy_files') as $file) { |
|
| 111 | + foreach(get('copy_files') as $file) { |
|
| 112 | 112 | $dirname = dirname(parse($file)); |
| 113 | 113 | // Create dir of shared file |
| 114 | - run("mkdir -p $sharedPath/" . $dirname); |
|
| 114 | + run("mkdir -p $sharedPath/".$dirname); |
|
| 115 | 115 | // Check if shared file does not exist in shared. |
| 116 | 116 | // and file exist in release |
| 117 | - if (!test("[ -f $sharedPath/$file ]") && test("[ -f {{release_path}}/$file ]")) { |
|
| 117 | + if(!test("[ -f $sharedPath/$file ]") && test("[ -f {{release_path}}/$file ]")) { |
|
| 118 | 118 | // Copy file in shared dir if not present |
| 119 | 119 | run("cp -rv {{release_path}}/$file $sharedPath/$file"); |
| 120 | 120 | } |
@@ -129,7 +129,7 @@ discard block |
||
| 129 | 129 | } |
| 130 | 130 | }); |
| 131 | 131 | |
| 132 | -task('deploy:migrate_db', function () { |
|
| 132 | +task('deploy:migrate_db', function() { |
|
| 133 | 133 | // Migration is disabled by default on production, so we need to toggle it temporally. |
| 134 | 134 | run('( \ |
| 135 | 135 | cd {{release_path}} && \ |
@@ -139,7 +139,7 @@ discard block |
||
| 139 | 139 | )'); |
| 140 | 140 | }); |
| 141 | 141 | |
| 142 | -task('deploy:maintenance_enable', function () { |
|
| 142 | +task('deploy:maintenance_enable', function() { |
|
| 143 | 143 | //define('MAINTENANCE', FALSE); |
| 144 | 144 | run('( \ |
| 145 | 145 | cd {{previous_release}} && \ |
@@ -150,7 +150,7 @@ discard block |
||
| 150 | 150 | sed -i -r "s/(\'MAINTENANCE\',) FALSE/\1 TRUE/" public/index.php \ |
| 151 | 151 | )'); |
| 152 | 152 | }); |
| 153 | -task('deploy:maintenance_disable', function () { |
|
| 153 | +task('deploy:maintenance_disable', function() { |
|
| 154 | 154 | //define('MAINTENANCE', FALSE); |
| 155 | 155 | run('( \ |
| 156 | 156 | cd {{release_path}} && \ |