AskalotCQA / askalot

Askalot CQA System of Next Generation
https://askalot.fiit.stuba.sk/demo
Other
26 stars 11 forks source link

database url #5

Closed jserpapinto closed 6 years ago

jserpapinto commented 6 years ago

Hey, I'm trying to dockerize your app, but wondering where to set database host param. Thanks!

adrianhuna commented 6 years ago

Hello @johnyserpa,

the database connection should be set in config/database.yml -> we provide config.database.yml.example file with example configuration.

Please also note installation instructions in README:

...

Copy and edit configuration files.

cp config/configuration.{yml.example,yml}
cp config/database.{yml.example,yml}
cp config/newrelic.{yml.example,yml}
...
jserpapinto commented 6 years ago

Sorry for the lateness.

I did see the conf file but did not understand where to put the host value.

fiit_development:
  adapter: postgresql
  encoding: unicode
  database: askalot_fiit_development
  pool: 5
  username: postgres
  password: postgres
isrba commented 6 years ago

Hello @johnyserpa, it is a standard database.yml config file used by Rails framework (please, see https://guides.rubyonrails.org/configuring.html#configuring-a-database).

By default localhost value is used as a hostname, if you need to change it, please, add a new parameter host (please, see this URL for all options as well as for same examples).

If you will need any further help, please, do not hesitate to send anoher comment. Thank you.

jserpapinto commented 6 years ago

Thanks a lot @isrba.