# Settings specified here will take precedence over those in config/environment.rb
# The production environment is meant for finished, "live" apps.
# Code is not reloaded between requests
config.cache_classes = true
config.log_level = :info
# Full error reports are disabled and caching is turned on
config.action_controller.consider_all_requests_local = false
config.action_controller.perform_caching = true
# Disable delivery errors if you bad email addresses should just be ignored
# config.action_mailer.raise_delivery_errors = false
# Host name gets changed by obsapisetup on each boot
FRONTEND_HOST = "api.turbolinux.com.cn"
FRONTEND_PORT = 80
FRONTEND_PROTOCOL = 'http'
# use this when the users see the api at another url (for rpm-, file-downloads)
#EXTERNAL_FRONTEND_HOST = "api.opensuse.org"
BUGZILLA_HOST = nil
DOWNLOAD_URL = "http://repo.turbolinux.com.cn"
# ICHAIN_MODE can be one of 'on', 'off' or 'simulate'
ICHAIN_MODE = "off"
BASE_NAMESPACE = nil
# The production environment is meant for finished, "live" apps.
# Code is not reloaded between requests
config.cache_classes = true
config.log_level = :info
# Full error reports are disabled and caching is turned on
config.action_controller.consider_all_requests_local = false
config.action_controller.perform_caching = true
# Disable delivery errors if you bad email addresses should just be ignored
# config.action_mailer.raise_delivery_errors = false
# Host name gets changed by obsapisetup on each boot
FRONTEND_HOST = "api.turbolinux.com.cn"
FRONTEND_PORT = 80
FRONTEND_PROTOCOL = 'http'
# use this when the users see the api at another url (for rpm-, file-downloads)
#EXTERNAL_FRONTEND_HOST = "api.opensuse.org"
BUGZILLA_HOST = nil
DOWNLOAD_URL = "http://repo.turbolinux.com.cn"
# ICHAIN_MODE can be one of 'on', 'off' or 'simulate'
ICHAIN_MODE = "off"
BASE_NAMESPACE = nil
本文介绍了一个Rails应用在生产环境下的典型配置,包括类的缓存、日志级别设定、错误报告禁用等,确保应用程序稳定运行。
1612

被折叠的 条评论
为什么被折叠?



