@@ -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 | } |
@@ -6,7 +6,9 @@ |
||
6 | 6 | */ |
7 | 7 | namespace Deployer; |
8 | 8 | |
9 | -if(basename(getcwd()) !== 'manga-tracker') die('Bad CWD: Call from manga-tracker with dep -f=_scripts/deploy.php deploy'); |
|
9 | +if(basename(getcwd()) !== 'manga-tracker') { |
|
10 | + die('Bad CWD: Call from manga-tracker with dep -f=_scripts/deploy.php deploy'); |
|
11 | +} |
|
10 | 12 | |
11 | 13 | require 'recipe/codeigniter.php'; |
12 | 14 |
@@ -20,7 +20,7 @@ discard block |
||
20 | 20 | set('git_tty', FALSE); |
21 | 21 | |
22 | 22 | // Fix bug on windows |
23 | -set('ssh_multiplexing', false); |
|
23 | +set('ssh_multiplexing', FALSE); |
|
24 | 24 | |
25 | 25 | add('copy_files', [ |
26 | 26 | 'application/config/_secure/email.php', |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | |
35 | 35 | // Writable dirs by web server |
36 | 36 | add('writable_dirs', []); |
37 | -set('allow_anonymous_stats', false); |
|
37 | +set('allow_anonymous_stats', FALSE); |
|
38 | 38 | |
39 | 39 | // Hosts |
40 | 40 | host('trackr.moe') |