Add some tweaks to help with upgrades
This commit is contained in:
parent
8a5aa23a50
commit
da2c2639b1
|
@ -11,7 +11,7 @@
|
|||
"watch-js": "parcel watch template-index.html offline.html template-view.html template-passwordreset.html --no-hmr --public-url /lexiconga/",
|
||||
"watch-php": "cpx \"src/php/**/{*,.*}\" dist -v -w",
|
||||
"bundle": "npm run process-images && npm run bundle-js && npm run copy-files && npm run copy-php",
|
||||
"bundle-js": "parcel build template-index.html offline.html template-view.html template-passwordreset.html",
|
||||
"bundle-js": "parcel build template-index.html offline.html template-view.html template-passwordreset.html --no-source-maps",
|
||||
"copy-files": "cpx \"node_modules/upup/dist/*.min.js\" dist -v",
|
||||
"copy-php": "cpx \"src/php/**/{*,.*}\" dist",
|
||||
"process-images": "node dev/resize-images.js",
|
||||
|
|
|
@ -1,5 +1,12 @@
|
|||
<?php
|
||||
require_once(realpath(dirname(__FILE__) . '/./api/Response.php'));
|
||||
$show_upgrade_screen = false;
|
||||
|
||||
if ($show_upgrade_screen) {
|
||||
$html = '<h1>Code Update in Progress</h1><p>Please refresh the page in 10 minutes.</p>';
|
||||
return Response::html($html);
|
||||
}
|
||||
|
||||
$view = isset($_GET['view']) ? $_GET['view'] : false;
|
||||
|
||||
switch ($view) {
|
||||
|
|
Loading…
Reference in New Issue