mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Help guide setting up the app
This commit is contained in:
parent
ef45c25f17
commit
b35eddd54b
@ -18,6 +18,7 @@ use Illuminate\Auth\Access\AuthorizationException;
|
|||||||
use Illuminate\Auth\AuthenticationException;
|
use Illuminate\Auth\AuthenticationException;
|
||||||
use Illuminate\Database\Eloquent\ModelNotFoundException as ModelNotFoundException;
|
use Illuminate\Database\Eloquent\ModelNotFoundException as ModelNotFoundException;
|
||||||
use Illuminate\Database\Eloquent\RelationNotFoundException;
|
use Illuminate\Database\Eloquent\RelationNotFoundException;
|
||||||
|
use Illuminate\Encryption\MissingAppKeyException;
|
||||||
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
|
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
|
||||||
use Illuminate\Http\Exceptions\ThrottleRequestsException;
|
use Illuminate\Http\Exceptions\ThrottleRequestsException;
|
||||||
use Illuminate\Http\Request;
|
use Illuminate\Http\Request;
|
||||||
@ -149,6 +150,10 @@ class Handler extends ExceptionHandler
|
|||||||
}
|
}
|
||||||
|
|
||||||
parent::report($exception);
|
parent::report($exception);
|
||||||
|
|
||||||
|
if (Ninja::isSelfHost() && $exception instanceof MissingAppKeyException) {
|
||||||
|
\Log::error('To setup the app run "cp .env.example .env" followed by "php artisan key:generate"');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private function validException($exception)
|
private function validException($exception)
|
||||||
|
@ -10,11 +10,17 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-span-2 h-screen flex">
|
<div class="col-span-2 h-screen flex">
|
||||||
<div class="m-auto md:w-1/2 lg:w-1/4 flex flex-col items-center">
|
<div class="m-auto md:w-1/2 lg:w-1/3 flex flex-col items-center">
|
||||||
<span class="flex items-center text-2xl">
|
<span class="flex items-center text-2xl">
|
||||||
@yield('code') — @yield('message')
|
@yield('code') — @yield('message')
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
|
@if (\App\Utils\Ninja::isSelfHost())
|
||||||
|
<span class="flex items-center text-1xl">
|
||||||
|
Check storage/logs for more details
|
||||||
|
</span>
|
||||||
|
@endif
|
||||||
|
|
||||||
<a class="button-link text-sm mt-2" href="{{ url(request()->getSchemeAndHttpHost() . '/client') }}">
|
<a class="button-link text-sm mt-2" href="{{ url(request()->getSchemeAndHttpHost() . '/client') }}">
|
||||||
{{ ctrans('texts.back_to', ['url' => parse_url(request()->getHttpHost())['host'] ?? request()->getHttpHost()]) }}
|
{{ ctrans('texts.back_to', ['url' => parse_url(request()->getHttpHost())['host'] ?? request()->getHttpHost()]) }}
|
||||||
</a>
|
</a>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user