optimize for google pagespeed insights
git-svn-id: http://78.47.251.156/svn/dev/sterntours-3@3479 f459cee4-fb09-11de-96c3-f9c5f16c3c76
This commit is contained in:
parent
a2a93aab0e
commit
7ad52c8b89
145 changed files with 105899 additions and 4408 deletions
31
trunk/web/update.php
Normal file
31
trunk/web/update.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