c_meyer
6ace6bbb52
Integriert den Fix zum Aufruf von /config/initializers/abstract_mysql2_adapter https://stackoverflow.com/questions/37315546/uninitialized-constant-activerecordconnectionadaptersmysql2adapternative-d
23 lines
649 B
Ruby
23 lines
649 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!
|
|
|
|
require File.expand_path('../../config/initializers/abstract_mysql2_adapter', __FILE__) |