mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-07 19:04:41 -04:00
Check for config:cache
This commit is contained in:
parent
47783fcd68
commit
32c54c04e4
@ -60,8 +60,15 @@ class StartupCheck
|
|||||||
abort(403);
|
abort(403);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check if a new version was installed
|
if (Utils::isSelfHost()) {
|
||||||
if (! Utils::isNinja()) {
|
// Check if config:cache may have been run
|
||||||
|
if (! env('APP_URL')) {
|
||||||
|
echo "<p>There appears to be a problem with your configuration, please check your .env file.</p>" .
|
||||||
|
"<p>If you've run 'php artisan config:cache' you will need to run 'php artisan config:clear'</p>.";
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Check if a new version was installed
|
||||||
$file = storage_path() . '/version.txt';
|
$file = storage_path() . '/version.txt';
|
||||||
$version = @file_get_contents($file);
|
$version = @file_get_contents($file);
|
||||||
if ($version != NINJA_VERSION) {
|
if ($version != NINJA_VERSION) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user