Skip to content

Instantly share code, notes, and snippets.

@tigefa4u
Last active May 30, 2016 00:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tigefa4u/8215989 to your computer and use it in GitHub Desktop.
Save tigefa4u/8215989 to your computer and use it in GitHub Desktop.
redmine database.yml for Openshift and Ruby On Rails
# 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