mirror of
https://github.com/docusealco/docuseal
synced 2026-11-06 06:52:33 -05:00
fix connection to DB URL with underscores
This commit is contained in:
1 parent
01333e5b2e
commit
e85df170f2
2 files changed
+22
-1
No files matched your search
+8
-1
@@ -12,7 +12,14 @@ test:
|
||||
database: docuseal_test
|
||||
|
||||
production:
|
||||
<% if ENV['DATABASE_URL'].to_s.empty? %>
|
||||
<% if !ENV['DATABASE_HOST'].to_s.empty? %>
|
||||
<<: *default
|
||||
host: <%= ENV['DATABASE_HOST'] %>
|
||||
port: <%= ENV['DATABASE_PORT'] %>
|
||||
username: <%= ENV['DATABASE_USER'] %>
|
||||
password: <%= ENV['DATABASE_PASSWORD'] %>
|
||||
database: <%= ENV['DATABASE_NAME'] %>
|
||||
<% elsif ENV['DATABASE_URL'].to_s.empty? %>
|
||||
adapter: sqlite3
|
||||
database: <%= ENV['WORKDIR'] || '.' %>/db.sqlite3
|
||||
<% elsif ENV['DATABASE_URL'].match?(/\Apostgres/) %>
|
||||
|
||||
Reference in new issue
Block a user