database.yml 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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 || "10" %>
  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. port: <%= ENV['DATABASE_PORT'] || "" %>
  26. strict: false
  27. production:
  28. adapter: <%= ENV['DATABASE_ADAPTER'].presence || "mysql2" %>
  29. encoding: <%= ENV['DATABASE_ENCODING'].presence || "utf8" %>
  30. reconnect: <%= ENV['DATABASE_RECONNECT'].presence || "true" %>
  31. database: <%= ENV['DATABASE_NAME'].presence || "huginn_production" %>
  32. pool: <%= ENV['DATABASE_POOL'].presence || "10" %>
  33. username: <%= ENV['DATABASE_USERNAME'].presence || "root" %>
  34. password: <%= ENV['DATABASE_PASSWORD'].presence || "password" %>
  35. host: <%= ENV['DATABASE_HOST'] || "" %>
  36. port: <%= ENV['DATABASE_PORT'] || "" %>
  37. socket: <%= ENV['DATABASE_SOCKET'] || ["/var/run/mysqld/mysqld.sock", "/opt/local/var/run/mysql5/mysqld.sock", "/tmp/mysql.sock"].find{ |path| File.exist? path } %>
  38. strict: false