Sha256: b647432773ae8a2b65635a3499e80204b01931d1f1fc7b80660fdfd57024df93

Contents?: true

Size: 798 Bytes

Versions: 10

Compression:

Stored size: 798 Bytes

Contents

default: &default
  adapter: <%= @database == 'mysql' ? 'mysql2' : 'postgresql' %>
  encoding: utf8mb4
  pool: <%%= ENV["DB_POOL"] || 5  %>
  database: <%%= ENV['DB_NAME'] || '<%= @project_name %>_development' %>
<% if @database == 'mysql' -%>
  encoding: utf8mb4
  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

10 entries across 10 versions & 1 rubygems

Version Path
jets-2.2.1 lib/jets/commands/templates/skeleton/config/database.yml.tt
jets-2.2.0 lib/jets/commands/templates/skeleton/config/database.yml.tt
jets-2.1.7 lib/jets/commands/templates/skeleton/config/database.yml.tt
jets-2.1.6 lib/jets/commands/templates/skeleton/config/database.yml.tt
jets-2.1.5 lib/jets/commands/templates/skeleton/config/database.yml.tt
jets-2.1.4 lib/jets/commands/templates/skeleton/config/database.yml.tt
jets-2.1.3 lib/jets/commands/templates/skeleton/config/database.yml.tt
jets-2.1.2 lib/jets/commands/templates/skeleton/config/database.yml.tt
jets-2.1.1 lib/jets/commands/templates/skeleton/config/database.yml.tt
jets-2.1.0 lib/jets/commands/templates/skeleton/config/database.yml.tt