Sha256: 82858edb5538bd637840958ceea7f99eb73a2d823240b2c139f2c4519f9418a8

Contents?: true

Size: 773 Bytes

Versions: 7

Compression:

Stored size: 773 Bytes

Contents

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

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

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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
jets-1.0.6 lib/jets/commands/templates/skeleton/config/database.yml.tt
jets-1.0.5 lib/jets/commands/templates/skeleton/config/database.yml.tt
jets-1.0.4 lib/jets/commands/templates/skeleton/config/database.yml.tt
jets-1.0.3 lib/jets/commands/templates/skeleton/config/database.yml.tt
jets-1.0.2 lib/jets/commands/templates/skeleton/config/database.yml.tt
jets-1.0.1 lib/jets/commands/templates/skeleton/config/database.yml.tt
jets-1.0.0 lib/jets/commands/templates/skeleton/config/database.yml.tt