Permalink
Browse files

allow configuring database encoding via env

  • Loading branch information...
machisuji committed Oct 18, 2018
1 parent d801ae9 commit 4be36a9d28084a4820d7b2bdfa1bff5c1c458042
Showing with 3 additions and 0 deletions.
  1. +3 −0 packaging/conf/database.yml
@@ -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:

0 comments on commit 4be36a9

Please sign in to comment.