Sha256: a8446f6c01581df03ff6a2ccb039ef15a24be436c50e7d621ab216ce1d85e34e

Contents?: true

Size: 822 Bytes

Versions: 9

Compression:

Stored size: 822 Bytes

Contents

default: &default
  adapter: <%= @database == 'mysql' ? 'mysql2' : 'postgresql' %>
  encoding: <%= @database == 'mysql' ? 'utf8mb4' : 'unicode' %>
  pool: <%%= ENV["DB_POOL"] || 5  %>
  database: <%%= ENV['DB_NAME'] || '<%= @project_name %>_development' %>
<% if @database == 'mysql' -%>
  username: <%%= ENV['DB_USER'] || 'root' %>
<% else -%>
  username: <%%= ENV['DB_USER'] || ENV['USER'] %>
<% end -%>
  password: <%%= ENV['DB_PASS'] %>
  host: <%%= ENV["DB_HOST"] %>
  url: <%%= ENV['DATABASE_URL'] %> # takes higher precedence than other settings

development:
  <<: *default
  database: <%%= ENV['DB_NAME'] || '<%= @project_name %>_development' %>

test:
  <<: *default
  database: <%= @project_name %>_test

production:
  <<: *default
  database: <%= @project_name %>_production
  url: <%%= ENV['DATABASE_URL'] %>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
jets-2.3.4 lib/jets/commands/templates/skeleton/config/database.yml.tt
jets-2.3.3 lib/jets/commands/templates/skeleton/config/database.yml.tt
jets-2.3.2 lib/jets/commands/templates/skeleton/config/database.yml.tt
jets-2.3.1 lib/jets/commands/templates/skeleton/config/database.yml.tt
jets-2.3.0 lib/jets/commands/templates/skeleton/config/database.yml.tt
jets-2.2.5 lib/jets/commands/templates/skeleton/config/database.yml.tt
jets-2.2.4 lib/jets/commands/templates/skeleton/config/database.yml.tt
jets-2.2.3 lib/jets/commands/templates/skeleton/config/database.yml.tt
jets-2.2.2 lib/jets/commands/templates/skeleton/config/database.yml.tt