Sha256: 364a98b719d7c95215c13f80bc8da5b994b40ae49a3869c25fe67da38637ee43

Contents?: true

Size: 1.27 KB

Versions: 10

Compression:

Stored size: 1.27 KB

Contents

# Please refer to Rails Guides for the details of database configuration:
#   http://guides.rubyonrails.org/configuring.html#configuring-a-database
# 
# For Rails 4.0 or earlier
#
# The only way to correctly configure the connection to a database was to
# use the config/database.yml file.
#
#   SQLite3:
#
#   <%= stage %>:
#     adapter: sqlite3
#     database: db/<%= application %>_<%= stage %>.sqlite3
#     pool: 5
#     timeout: 5000
#
#   MySQL:
#  
#   <%= stage %>:
#     adapter: mysql2
#     encoding: utf8
#     host: <%%= ENV["DATABASE_HOST"] %>
#     database: <%= application %>_<%= stage %>
#     pool: 5
#     username: root
#     password: <%%= ENV["DATABASE_PASSWORD"] %>
#     socket: /tmp/mysql.sock
#
# Sensitive information like database password is recommended to setup in env_vars.rb of Luban.
# 
# For Rails 4.1+
#
# It's recommended to use an environment variable, DATABASE_URL, to configure a database
# The database url can be setup in env_vars.rb of Luban:
#
#   SQLite3:
#
#   env_vars[:database_url] = 
#      "sqlite3:db/#{application}_#{stage}.sqlite3?pool=5&timeout=5000"
#
#   MySQL:
#
#   env_vars[:database_url] = 
#      "mysql2://username:password@host:port/#{application}_#{stage}?encoding=utf8&pool=5"
#
# <%= stage %>:
#  url: <%%= ENV["DATABASE_URL"] %>

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
luban-rails-0.1.14 lib/luban/deployment/applications/rails/templates/config/database.yml.erb
luban-rails-0.1.13 lib/luban/deployment/applications/rails/templates/config/database.yml.erb
luban-rails-0.1.12 lib/luban/deployment/applications/rails/templates/config/database.yml.erb
luban-rails-0.1.11 lib/luban/deployment/applications/rails/templates/config/database.yml.erb
luban-rails-0.1.10 lib/luban/deployment/applications/rails/templates/database.yml.erb
luban-rails-0.1.9 lib/luban/deployment/applications/rails/templates/database.yml.erb
luban-rails-0.1.8 lib/luban/deployment/applications/rails/templates/database.yml.erb
luban-rails-0.1.7 lib/luban/deployment/applications/rails/templates/database.yml.erb
luban-rails-0.1.6 lib/luban/deployment/applications/rails/templates/database.yml.erb
luban-rails-0.1.5 lib/luban/deployment/applications/rails/templates/database.yml.erb