allow configuring database encoding via env

pull/6762/head
Markus Kahl 6 years ago
parent 14a10f9b63
commit 00fe107b41
  1. 3
      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:

Loading…
Cancel
Save