mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-08 20:22:42 +01:00
Check for config:cache
This commit is contained in:
parent
47783fcd68
commit
32c54c04e4
@ -60,8 +60,15 @@ class StartupCheck
|
||||
abort(403);
|
||||
}
|
||||
|
||||
// Check if a new version was installed
|
||||
if (! Utils::isNinja()) {
|
||||
if (Utils::isSelfHost()) {
|
||||
// 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';
|
||||
$version = @file_get_contents($file);
|
||||
if ($version != NINJA_VERSION) {
|
||||
|
Loading…
Reference in New Issue
Block a user