Skip to content

Commit

Permalink
fix: database path in bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
SRWieZ committed Jan 29, 2025
1 parent f00208d commit 1c00a02
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/NativeServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
use Native\Laravel\Logging\LogWatcher;
use Native\Laravel\PowerMonitor as PowerMonitorImplementation;
use Native\Laravel\Windows\WindowManager as WindowManagerImplementation;
use Phar;
use Spatie\LaravelPackageTools\Package;
use Spatie\LaravelPackageTools\PackageServiceProvider;

Expand Down Expand Up @@ -150,7 +151,7 @@ public function rewriteDatabase()
{
$databasePath = config('nativephp-internal.database_path');

if (config('app.debug')) {
if (config('app.debug') && !Phar::running()) {
$databasePath = database_path('nativephp.sqlite');

if (! file_exists($databasePath)) {
Expand Down

0 comments on commit 1c00a02

Please sign in to comment.