-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
changing database config file to specify mysql
- Loading branch information
Showing
4 changed files
with
43 additions
and
32 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,39 @@ | ||
# SQLite version 3.x | ||
# gem install sqlite3 | ||
# | ||
# Ensure the SQLite 3 gem is defined in your Gemfile | ||
# gem 'sqlite3' | ||
# *** WARNING *** Don't change this file ! | ||
# | ||
# This file is a placeholder. In Dev/Test/Prod, this file will | ||
# be replaced by ansible, whence we have 3 separate templates, one | ||
# for each environment! | ||
# See: | ||
# [nmacgreg@its004nm2 ansible-dev-master]$ ls -al roles/blacklight-application/templates/database* | ||
# -rwxrwxr-x. 1 nmacgreg nmacgreg 643 Apr 22 09:01 roles/blacklight-application/templates/database.yml | ||
# -rw-rw-r--. 1 nmacgreg nmacgreg 470 May 11 09:45 roles/blacklight-application/templates/database.yml.prod.j2 | ||
# -rw-rw-r--. 1 nmacgreg nmacgreg 508 Mar 26 11:07 roles/blacklight-application/templates/database.yml.test.j2 | ||
|
||
default: &default | ||
adapter: sqlite3 | ||
adapter: mysql2 | ||
encoding: utf8 | ||
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %> | ||
timeout: 5000 | ||
username: root | ||
password: mysecretpassword | ||
host: 127.0.0.1 | ||
|
||
development: | ||
<<: *default | ||
database: db/development.sqlite3 | ||
database: cms_development | ||
|
||
# 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: | ||
<<: *default | ||
database: db/test.sqlite3 | ||
database: cms_test | ||
|
||
staging: | ||
# from template database.yml.test.j2 | ||
<<: *default | ||
database: cms_staging | ||
|
||
production: | ||
# from template database.yml.prod.j2 | ||
<<: *default | ||
database: db/production.sqlite3 | ||
database: cms_production |
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