GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

Code

< 40 %
40-60 %
> 60 %
1
<?php
2
namespace Deployer;
3
4
require_once __DIR__ . '/common.php';
5
6
/**
7
 * Magento Configuration
8
 */
9
10
// Magento shared dirs
11
set('shared_dirs', ['var', 'media']);
12
13
// Magento shared files
14
set('shared_files', ['app/etc/local.xml']);
15
16
// Magento writable dirs
17
set('writable_dirs', ['var', 'media']);
18
19
/**
20
 * Clear cache
21
 */
22
task('deploy:cache:clear', function () {
23
    run("cd {{release_path}} && php -r \"require_once 'app/Mage.php'; umask(0); Mage::app()->cleanCache();\"");
24
})->desc('Clear cache');
25
26
/**
27
 * Remove files that can be used to compromise Magento
28
 */
29
task('deploy:clear_version', function () {
30
    run("rm -f {{release_path}}/LICENSE.html");
31
    run("rm -f {{release_path}}/LICENSE.txt");
32
    run("rm -f {{release_path}}/LICENSE_AFL.txt");
33
    run("rm -f {{release_path}}/RELEASE_NOTES.txt");
34
})->hidden();
35
36
after('deploy:update_code', 'deploy:clear_version');
37
38
39
/**
40
 * Main task
41
 */
42
task('deploy', [
43
    'deploy:info',
44
    'deploy:setup',
45
    'deploy:lock',
46
    'deploy:release',
47
    'deploy:update_code',
48
    'deploy:shared',
49
    'deploy:writable',
50
    'deploy:cache:clear',
51
    'deploy:symlink',
52
    'deploy:unlock',
53
    'deploy:cleanup',
54
])->desc('Deploy your project');
55
56
after('deploy', 'success');
57