thingspeak/config/environment.rb
2011-03-27 16:56:15 -04:00

22 lines
561 B
Ruby

# 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!