Verified Commit 1803dc62 authored by paz's avatar paz
Browse files

Add timeout to default sqlite-config.

Without timeout specified sqlite returns an error whenever it finds the
database locked. With the timeout it tries again.
parent db2dcace
......@@ -26,6 +26,7 @@ database:
production:
adapter: 'sqlite3'
database: /var/schleuder/db.sqlite
timeout: 5000
# Note: The API-daemon will bind only to localhost if no TLS-cert+keys are available.
api:
......
......@@ -24,7 +24,8 @@ module Schleuder
'database' => {
'production' => {
'adapter' => 'sqlite3',
'database' => '/var/schleuder/db.sqlite'
'database' => '/var/schleuder/db.sqlite',
'timeout' => 5000
}
},
'api' => {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment