Skip to content

Commit 1c00a02

Browse files
committed
fix: database path in bundle
1 parent f00208d commit 1c00a02

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/NativeServiceProvider.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
use Native\Laravel\Logging\LogWatcher;
2727
use Native\Laravel\PowerMonitor as PowerMonitorImplementation;
2828
use Native\Laravel\Windows\WindowManager as WindowManagerImplementation;
29+
use Phar;
2930
use Spatie\LaravelPackageTools\Package;
3031
use Spatie\LaravelPackageTools\PackageServiceProvider;
3132

@@ -150,7 +151,7 @@ public function rewriteDatabase()
150151
{
151152
$databasePath = config('nativephp-internal.database_path');
152153

153-
if (config('app.debug')) {
154+
if (config('app.debug') && !Phar::running()) {
154155
$databasePath = database_path('nativephp.sqlite');
155156

156157
if (! file_exists($databasePath)) {

0 commit comments

Comments
 (0)