Skip to content
This repository has been archived by the owner on Jun 5, 2019. It is now read-only.

Commit

Permalink
allow configuring database encoding via env
Browse files Browse the repository at this point in the history
  • Loading branch information
machisuji committed Oct 18, 2018
1 parent d801ae9 commit 4be36a9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packaging/conf/database.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
<% url = ENV.fetch('DATABASE_URL') %>
production:
url: <%= url %>
<% if encoding = ENV['DATABASE_ENCODING'] %>
encoding: '<%= encoding %>'
<% end %>
<% if url.start_with? 'mysql' %>
reconnect: true
variables:
Expand Down

0 comments on commit 4be36a9

Please sign in to comment.