init without trunk
This commit is contained in:
parent
ed24ac4994
commit
bb809e7233
14652 changed files with 177862 additions and 94817 deletions
31
web/clear_cache.php
Normal file
31
web/clear_cache.php
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Update</title>
|
||||
<meta charset="utf-8">
|
||||
</head>
|
||||
<body>
|
||||
<pre><code>
|
||||
<?php
|
||||
|
||||
function cmd($cmd)
|
||||
{
|
||||
$cmd .= ' 2>&1';
|
||||
$printCmd = preg_replace('/(--password\s*)([^\s]+)(\s|$)/i', '$1****$3', $cmd);
|
||||
echo "<b>". $printCmd ."</b>\n\n";
|
||||
echo shell_exec($cmd);
|
||||
echo "\n\n";
|
||||
}
|
||||
|
||||
chdir(dirname(__FILE__).'/..');
|
||||
//cmd('cp composer.lock composer.lock~');
|
||||
//cmd('svn update --username redmine --password 89QQvQtf');
|
||||
//cmd('cmp --silent composer.lock composer.lock~ || php composer.phar install');
|
||||
//cmd( 'rm composer.lock~');
|
||||
cmd('php bin/console cache:clear --env=prod --no-debug');
|
||||
//cmd('php bin/console assetic:dump --env=prod --no-debug');
|
||||
|
||||
?>
|
||||
</code></pre>
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Add table
Add a link
Reference in a new issue