-
Notifications
You must be signed in to change notification settings - Fork 8
Application Settings
Sebastian Fiedlschuster edited this page Oct 27, 2015
·
1 revision
There are several levels of configuration: Some settings have to be configured through configuration files, others can be set in the rails console and are stored in the database.
The application logo has to be stored as app/assets/images/logo.png
.
The smtp credentials that allow the application to send emails through an smtp server, are stored in config/secrets.yml
. Make sure this file is not part of a public repository, but is transferred separately to your production server.
# config/secrets.yml
# ...
production:
smtp_server: 'smtp.example.com'
smtp_user: '[email protected]'
smtp_password: 'my secret smtp password'
smtp_domain: 'example.com'
smtp_from: '[email protected]'
You can set those, for example, in the production rails console.
# rails console
Setting.app_name = "My Platform"
Setting.preferred_locale = :de
Setting.support_email = "[email protected]"