mirror of
https://github.com/bitinflow/expose.git
synced 2026-03-13 13:35:54 +00:00
wip
This commit is contained in:
@@ -24,6 +24,7 @@ use App\Http\RouteGenerator;
|
||||
use App\Server\Http\Router;
|
||||
use App\Server\SubdomainGenerator\RandomSubdomainGenerator;
|
||||
use Clue\React\SQLite\DatabaseInterface;
|
||||
use Phar;
|
||||
use Ratchet\Server\IoServer;
|
||||
use Ratchet\WebSocket\WsServer;
|
||||
use React\Socket\Server;
|
||||
@@ -205,7 +206,14 @@ class Factory
|
||||
{
|
||||
app()->singleton(DatabaseInterface::class, function() {
|
||||
$factory = new \Clue\React\SQLite\Factory($this->loop);
|
||||
return $factory->openLazy(config('expose.admin.database', ':memory:'));
|
||||
|
||||
$options = ['worker_command' => Phar::running(false) ? Phar::running(false) . ' --sqlite-worker' : null];
|
||||
|
||||
return $factory->openLazy(
|
||||
config('expose.admin.database', ':memory:'),
|
||||
null,
|
||||
$options,
|
||||
);
|
||||
});
|
||||
|
||||
return $this;
|
||||
|
||||
Reference in New Issue
Block a user