Sha256: 4a655683cfe1027101abc59a38f873f4d3508d8d9c22bb31f28442da533cf42d
Contents?: true
Size: 947 Bytes
Versions: 13
Compression:
Stored size: 947 Bytes
Contents
<% socket = [ ENV["BOXEN_MYSQL_SOCKET"], "/var/run/mysql5/mysqld.sock", "/tmp/mysql.sock" ].detect { |f| f && File.exist?(f) } port = ENV["BOXEN_MYSQL_PORT"] || "3306" %> production: adapter: mysql2 encoding: utf8 database: <%= ENV['DB_NAME'] %> pool: 5 username: <%= ENV['DB_USER'] %> password: <%= ENV['DB_PASSWORD'] %> host: <%= ENV['DB_HOST'] %> development: &development adapter: mysql2 encoding: utf8 database: <%= ENV['DB_NAME'] %>_development username: <%= ENV['DB_USER'] %> password: <%= ENV['DB_PASSWORD'] %> <% if socket %> host: localhost socket: <%= socket %> <% else %> host: 127.0.0.1 port: <%= port %> <% end %> # Warning: The database defined as "test" will be erased and # re-generated from your development database when you run "rake". # Do not set this db to the same as development or production. test: <<: *development database: <%= ENV['DB_NAME'] %>_test pool: 5
Version data entries
13 entries across 13 versions & 1 rubygems