configuration for production

This commit is contained in:
2015-01-03 10:52:34 +01:00
parent 52ec22646b
commit 3799e5f842
7 changed files with 20 additions and 16 deletions

View File

@@ -25,7 +25,7 @@ Fetsite::Application.configure do
# Specifies the header that your server uses for sending files
# config.action_dispatch.x_sendfile_header = "X-Sendfile" # for apache
# config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx
config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
# config.force_ssl = true
@@ -42,11 +42,6 @@ Fetsite::Application.configure do
# Use a different cache store in production
# config.cache_store = :mem_cache_store
config.consider_all_requests_local = true
config.action_controller.perform_caching = false
# Enable serving of images, stylesheets, and JavaScripts from an asset server
# config.action_controller.asset_host = "http://assets.example.com"
@@ -54,8 +49,9 @@ Fetsite::Application.configure do
# config.assets.precompile += %w( search.js )
# Disable delivery errors, bad email addresses will be ignored
# config.action_mailer.raise_delivery_errors = false
config.action_mailer.default_url_options={:host=>"glonass.htu.tuwien.ac.at"}
# config.action_mailer.raise_delivery_errors = false
config.action_mailer.delivery_method =:sendmail
config.action_mailer.default_url_options={:host=>"www.fet.at"}
# Enable threaded mode
# config.threadsafe!

View File

@@ -4,11 +4,11 @@ Devise.setup do |config|
# ==> Mailer Configuration
# Configure the e-mail address which will be shown in Devise::Mailer,
# note that it will be overwritten if you use your own mailer class with default "from" parameter.
config.mailer_sender = "test@example.com"
config.mailer_sender = "no-reply@fet.at"
# Configure the class responsible to send e-mails.
config.mailer = "Devise::Mailer"
config.mailer.default_url_options = { :host => 'glonass.htu.tuwien.ac.at' }
config.mailer.default_url_options = { :host => 'www.fet.at' }
config.mailer.delivery_method = :sendmail
# config.mailer.smtp_settings = {
# :address => "smtp.gmail.com",

View File

@@ -1,9 +1,9 @@
production:
solr:
hostname: localhost
port: 8983
port: 8080
log_level: WARNING
path: /solr/default #production #ollection1 #production
path: /solr-4.10.2/default #production #ollection1 #production
# solr_home: solr
# read_timeout: 2
# open_timeout: 0.5
@@ -21,4 +21,4 @@ test:
port: 8981
log_level: WARNING
path: /solr/test