database.yml 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. development:
  2. adapter: <%= ENV['DATABASE_ADAPTER'].presence || "mysql2" %>
  3. encoding: <%= ENV['DATABASE_ENCODING'].presence || "utf8" %>
  4. reconnect: <%= ENV['DATABASE_RECONNECT'].presence || "true" %>
  5. database: <%= ENV['DATABASE_NAME'].presence || "huginn_development" %>
  6. pool: <%= ENV['DATABASE_POOL'].presence || "20" %>
  7. username: <%= ENV['DATABASE_USERNAME'].presence || "root" %>
  8. password: <%= ENV['DATABASE_PASSWORD'] || "" %>
  9. host: <%= ENV['DATABASE_HOST'] || "" %>
  10. port: <%= ENV['DATABASE_PORT'] || "" %>
  11. socket: <%= ENV['DATABASE_SOCKET'] || ["/var/run/mysqld/mysqld.sock", "/opt/local/var/run/mysql5/mysqld.sock", "/tmp/mysql.sock"].find { |path| File.exist? path } %>
  12. strict: false
  13. # Warning: The database defined as "test" will be erased and
  14. # re-generated from your development database when you run "rake".
  15. # Do not set this db to the same as development or production.
  16. test:
  17. adapter: <%= ENV['DATABASE_ADAPTER'].presence || "mysql2" %>
  18. encoding: <%= ENV['DATABASE_ENCODING'].presence || "utf8" %>
  19. reconnect: <%= ENV['DATABASE_RECONNECT'].presence || "true" %>
  20. database: <%= ENV['TEST_DATABASE_NAME'].presence || "huginn_test" %>
  21. pool: <%= ENV['DATABASE_POOL'].presence || "5" %>
  22. username: <%= ENV['DATABASE_USERNAME'].presence || "root" %>
  23. password: <%= ENV['DATABASE_PASSWORD'].presence || "" %>
  24. socket: <%= ENV['DATABASE_SOCKET'] || ["/var/run/mysqld/mysqld.sock", "/opt/local/var/run/mysql5/mysqld.sock", "/tmp/mysql.sock"].find { |path| File.exist? path } %>
  25. host: <%= ENV['DATABASE_HOST'] || "" %>
  26. port: <%= ENV['DATABASE_PORT'] || "" %>
  27. strict: false
  28. production:
  29. adapter: <%= ENV['DATABASE_ADAPTER'].presence || "mysql2" %>
  30. encoding: <%= ENV['DATABASE_ENCODING'].presence || "utf8" %>
  31. reconnect: <%= ENV['DATABASE_RECONNECT'].presence || "true" %>
  32. database: <%= ENV['DATABASE_NAME'].presence || "huginn_production" %>
  33. pool: <%= ENV['DATABASE_POOL'].presence || "20" %>
  34. username: <%= ENV['DATABASE_USERNAME'].presence || "root" %>
  35. password: <%= ENV['DATABASE_PASSWORD'].presence || "password" %>
  36. host: <%= ENV['DATABASE_HOST'] || "" %>
  37. port: <%= ENV['DATABASE_PORT'] || "" %>
  38. socket: <%= ENV['DATABASE_SOCKET'] || ["/var/run/mysqld/mysqld.sock", "/opt/local/var/run/mysql5/mysqld.sock", "/tmp/mysql.sock"].find{ |path| File.exist? path } %>
  39. strict: false