mirror of
https://github.com/docusealco/docuseal
synced 2026-11-06 23:12:33 -05:00
use sidekiq
This commit is contained in:
1 parent
9539c476c0
commit
3034c00bb3
41 files changed
+332
-132
No files matched your search
+4
-2
@@ -1,7 +1,7 @@
|
||||
default: &default
|
||||
adapter: postgresql
|
||||
encoding: unicode
|
||||
pool: <%= ENV.fetch('RAILS_MAX_THREADS', 15) %>
|
||||
pool: <%= ENV.fetch('RAILS_MAX_THREADS', 15).to_i + ENV.fetch('SIDEKIQ_THREADS', 5).to_i %>
|
||||
|
||||
development:
|
||||
<<: *default
|
||||
@@ -22,12 +22,14 @@ production:
|
||||
<% elsif ENV['DATABASE_URL'].to_s.empty? %>
|
||||
adapter: sqlite3
|
||||
database: <%= ENV['WORKDIR'] || '.' %>/db.sqlite3
|
||||
pool: <%= ENV.fetch('RAILS_MAX_THREADS', 15).to_i + ENV.fetch('SIDEKIQ_THREADS', 5).to_i %>
|
||||
timeout: 5000
|
||||
<% elsif ENV['DATABASE_URL'].match?(/\Apostgres/) %>
|
||||
<<: *default
|
||||
url: <%= ENV['DATABASE_URL'] %>
|
||||
<% elsif ENV['DATABASE_URL'].match?(/\Amysql/) %>
|
||||
adapter: mysql2
|
||||
encoding: utf8mb4
|
||||
pool: <%= ENV.fetch('RAILS_MAX_THREADS', 15) %>
|
||||
pool: <%= ENV.fetch('RAILS_MAX_THREADS', 15).to_i + ENV.fetch('SIDEKIQ_THREADS', 5).to_i %>
|
||||
url: <%= ENV['DATABASE_URL'] %>
|
||||
<% end %>
|
||||
Reference in new issue
Block a user