Skip to content

Commit b93763e

Browse files
committed
[blazer] Fall back to DATABASE_URL if BLAZER_ isn't set
1 parent 3941567 commit b93763e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

config/blazer.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
data_sources:
44
main:
5-
url: <%= ENV["BLAZER_DATABASE_URL"]&.sub("mysql://", "mysql2://") %>
5+
url: <%= (ENV["BLAZER_DATABASE_URL"].presence || ENV["DATABASE_URL"].presence)&.sub("mysql://", "mysql2://") %>
66

77
# statement timeout, in seconds
88
# none by default

0 commit comments

Comments
 (0)