Added options for external database server
Database config file has allowed only localhost database server. If you want to use a database on a different host, you need the ability to set hostname and port - for MySQL see: "https://stackoverflow.com/questions/5872264/correct-mysql-configuration-for-ruby-on-rails-database-yml-file" - for PostgreSQL see: "https://gist.github.com/jwo/4512764#file-postgres-database-yml"
This commit is contained in:
parent
aa6c647187
commit
5f861c566d
|
@ -14,12 +14,20 @@ default: &default
|
||||||
# username: zammad
|
# username: zammad
|
||||||
# password:
|
# password:
|
||||||
|
|
||||||
|
# If the database server is not on localhost, you can set hostname and port:
|
||||||
|
# host:
|
||||||
|
# port:
|
||||||
|
|
||||||
#### mysql config #####
|
#### mysql config #####
|
||||||
|
|
||||||
# adapter: mysql2
|
# adapter: mysql2
|
||||||
# username: zammad
|
# username: zammad
|
||||||
# password: <Password>
|
# password: <Password>
|
||||||
|
|
||||||
|
# If the database server is not on localhost, you can set hostname and port:
|
||||||
|
# host:
|
||||||
|
# port:
|
||||||
|
|
||||||
production:
|
production:
|
||||||
<<: *default
|
<<: *default
|
||||||
database: zammad_production
|
database: zammad_production
|
||||||
|
|
Loading…
Reference in a new issue