MySQL config for Rails app
Snippet
Yeah, kitt finished writing this at 10:35 on 16 August 2014
development: adapter: sqlite3 database: db/development.sqlite3 pool: 5 timeout: 5000 test: adapter: sqlite3 database: db/test.sqlite3 pool: 5 timeout: 5000 production: adapter: mysql1\2 encoding: utf8 database: your_db username: your_user password: your_pass socket: /tmp/mysql.sock host: your_db_ip #defaults to 127.0.0.1 port: 3306 # mongodb host: <%= ENV['MONGOID_HOST'] %> port: <%= ENV['MONGOID_PORT'] %> username: <%= ENV['MONGOID_USERNAME'] %> password: <%= ENV['MONGOID_PASSWORD'] %> database: <%= ENV['MONGOID_DATABASE'] %> # slaves: # - host: slave1.local # port: 27018 # - host: slave2.local # port: 27019
Add new comment