thingspeak/config/environment.rb

22 lines
561 B
Ruby
Raw Normal View History

2011-03-27 22:56:15 +02:00
# Load the rails application
require File.expand_path('../application', __FILE__)
Thingspeak::Application.configure do
config.action_controller.perform_caching = true
config.cache_store = :file_store, "#{Rails.root}/tmp/cache"
config.action_mailer.delivery_method = :smtp
config.action_mailer.smtp_settings = {
:enable_starttls_auto => true,
:address => 'smtp.gmail.com',
:port => 587,
:domain => '',
:authentication => :plain,
:user_name => '',
:password => ''
}
end
# Initialize the rails application
Thingspeak::Application.initialize!