added database.yml to .gitignore, created database.yml.example, set db path to withink BikeBike
This commit is contained in:
parent
bfb5a7c237
commit
e8e55fe6d1
1
.gitignore
vendored
1
.gitignore
vendored
@ -68,3 +68,4 @@ brakeman.html
|
||||
# Ignore sensitive data
|
||||
/config/settings/local.rb
|
||||
/nbproject/private/
|
||||
database.yml
|
@ -26,7 +26,7 @@ module BikeBike
|
||||
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
|
||||
config.i18n.default_locale = :en #:de
|
||||
config.i18n.enforce_available_locales = false
|
||||
self.paths['config/database'] = Rails.root.parent.join("secure/database.yml").to_s
|
||||
self.paths['config/database'] = Rails.root.parent.join('BikeBike', 'config', 'database.yml')
|
||||
# config.action_controller.default_url_options = { :trailing_slash => true }
|
||||
#config.middleware.swap 'Rack::MethodOverride', 'Rack::MethodOverrideWithParams'
|
||||
#config.i18n.exception_handler = I18n::MissingTranslationExceptionHandler.new
|
||||
|
@ -18,8 +18,8 @@ development:
|
||||
adapter: postgresql
|
||||
encoding: unicode
|
||||
database: bike_bike_dev
|
||||
username: bike_bike
|
||||
password: NewOrleans@)!#
|
||||
username: dylan
|
||||
password: godwin
|
||||
host: 127.0.0.1
|
||||
port: 5432
|
||||
pool: 5
|
||||
@ -38,8 +38,8 @@ test: &test
|
||||
adapter: postgresql
|
||||
encoding: unicode
|
||||
database: bike_bike_test
|
||||
username: bike_bike
|
||||
password: NewOrleans@)!#
|
||||
username: dylan
|
||||
password: godwin
|
||||
host: 127.0.0.1
|
||||
port: 5432
|
||||
pool: 5
|
||||
@ -48,11 +48,12 @@ production:
|
||||
adapter: postgresql
|
||||
encoding: unicode
|
||||
database: bike_bike
|
||||
username: bike_bike
|
||||
password: NewOrleans@)!#
|
||||
username: dylan
|
||||
password: godwin
|
||||
host: 127.0.0.1
|
||||
port: 5432
|
||||
pool: 5
|
||||
|
||||
cucumber:
|
||||
<<: *test
|
||||
|
||||
|
33
config/database.yml.example
Normal file
33
config/database.yml.example
Normal file
@ -0,0 +1,33 @@
|
||||
development:
|
||||
adapter: postgresql
|
||||
encoding: unicode
|
||||
database: bike_bike_dev
|
||||
username: bike_bike
|
||||
password: admin
|
||||
host: 127.0.0.1
|
||||
port: 5432
|
||||
pool: 5
|
||||
|
||||
|
||||
test: &test
|
||||
adapter: postgresql
|
||||
encoding: unicode
|
||||
database: bike_bike_test
|
||||
username: bike_bike
|
||||
password: admmin
|
||||
host: 127.0.0.1
|
||||
port: 5432
|
||||
pool: 5
|
||||
|
||||
production:
|
||||
adapter: postgresql
|
||||
encoding: unicode
|
||||
database: bike_bike
|
||||
username: bike_bike
|
||||
password: admin
|
||||
host: 127.0.0.1
|
||||
port: 5432
|
||||
pool: 5
|
||||
|
||||
cucumber:
|
||||
<<: *test
|
Loading…
x
Reference in New Issue
Block a user