1
0

database.yml 2.0 KB

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