Last active
May 30, 2016 00:51
-
-
Save tigefa4u/8215989 to your computer and use it in GitHub Desktop.
redmine database.yml for Openshift and Ruby On Rails
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Default setup is given for MySQL with ruby1.8. If you're running Redmine | |
# with MySQL and ruby1.9, replace the adapter name with `mysql2`. | |
# Examples for PostgreSQL and SQLite3 can be found at the end. | |
# rename database.yml | |
production: | |
adapter: mysql2 | |
database: <%= ENV['OPENSHIFT_APP_NAME'] %> | |
host: <%= ENV['OPENSHIFT_MYSQL_DB_HOST'] %> | |
username: <%= ENV['OPENSHIFT_MYSQL_DB_USERNAME'] %> | |
password: <%= ENV['OPENSHIFT_MYSQL_DB_PASSWORD'] %> | |
port: <%= ENV['OPENSHIFT_MYSQL_DB_PORT'] %> | |
encoding: utf8 | |
development: &DEVELOPMENT | |
adapter: postgresql | |
database: <%= ENV['OPENSHIFT_APP_NAME'] %> | |
host: <%= ENV['OPENSHIFT_POSTGRESQL_DB_HOST'] %> | |
username: <%= ENV['OPENSHIFT_POSTGRESQL_DB_USERNAME'] %> | |
password: <%= ENV['OPENSHIFT_POSTGRESQL_DB_PASSWORD'] %> | |
port: <%= ENV['OPENSHIFT_POSTGRESQL_DB_PORT'] %> | |
# 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: | |
adapter: sqlite3 | |
database: db/redmine-test.sqlite3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment