Completed
Push — master ( 9ed743...6b5e3b )
by Angus
02:43
created
_scripts/deploy.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -120,15 +120,15 @@  discard block
 block discarded – undo
120 120
 	)');
121 121
 });
122 122
 
123
-task('deploy:copy_files', function () {
123
+task('deploy:copy_files', function() {
124 124
 	$sharedPath = '{{deploy_path}}/shared';
125
-	foreach (get('copy_files') as $file) {
125
+	foreach(get('copy_files') as $file) {
126 126
 		$dirname = dirname(parse($file));
127 127
 		// Create dir of shared file
128
-		runS("mkdir -p $sharedPath/" . $dirname);
128
+		runS("mkdir -p $sharedPath/".$dirname);
129 129
 		// Check if shared file does not exist in shared.
130 130
 		// and file exist in release
131
-		if (!test("[ -f $sharedPath/$file ]") && test("[ -f {{release_path}}/$file ]")) {
131
+		if(!test("[ -f $sharedPath/$file ]") && test("[ -f {{release_path}}/$file ]")) {
132 132
 			// Copy file in shared dir if not present
133 133
 			runS("cp -rv {{release_path}}/$file $sharedPath/$file");
134 134
 		}
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
 	}
144 144
 });
145 145
 
146
-task('deploy:migrate_db', function () {
146
+task('deploy:migrate_db', function() {
147 147
 	// Migration is disabled by default on production, so we need to toggle it temporally.
148 148
 	runS('( \
149 149
 		cd {{release_path}} && \
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
 	)');
154 154
 });
155 155
 
156
-task('deploy:maintenance_enable', function () {
156
+task('deploy:maintenance_enable', function() {
157 157
 	//define('MAINTENANCE', FALSE);
158 158
 	runS('( \
159 159
 		cd {{previous_release}} && \
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
 		sed -i -r "s/(\'MAINTENANCE\',) FALSE/\1 TRUE/" public/index.php \
165 165
 	)');
166 166
 });
167
-task('deploy:maintenance_disable', function () {
167
+task('deploy:maintenance_disable', function() {
168 168
 	//define('MAINTENANCE', FALSE);
169 169
 	runS('( \
170 170
 		cd {{release_path}} && \
Please login to merge, or discard this patch.