| 1 |
# Be sure to restart your server when you modify this file |
|---|
| 2 |
|
|---|
| 3 |
# Uncomment below to force Rails into production mode when |
|---|
| 4 |
# you don't control web/app server and can't set it the proper way |
|---|
| 5 |
# ENV['RAILS_ENV'] ||= 'production' |
|---|
| 6 |
|
|---|
| 7 |
# Specifies gem version of Rails to use when vendor/rails is not present |
|---|
| 8 |
RAILS_GEM_VERSION = '2.1' unless defined? RAILS_GEM_VERSION |
|---|
| 9 |
|
|---|
| 10 |
#RAILS_ROOT = "/home/jm/agitator/" |
|---|
| 11 |
|
|---|
| 12 |
BOOKMARKING_NAME = "del.icio.us" |
|---|
| 13 |
BOOKMARKING_API_URL = "api.del.icio.us" |
|---|
| 14 |
BOOKMARKING_API_USERNAME = "agitator_test" |
|---|
| 15 |
BOOKMARKING_API_PASSWORD = "6f1482c1e50d0de7763a5bcd858006e3" |
|---|
| 16 |
DEFAULT_REMINDER_TAGS = "todo" |
|---|
| 17 |
|
|---|
| 18 |
BOOKMARKING_API_CREDS_URL = "/v1/posts/update" |
|---|
| 19 |
BOOKMARKING_API_GET_TAGS_URL = "/v1/tags/get" |
|---|
| 20 |
BOOKMARKING_API_WHO_ELSE_URL = "http://del.icio.us/url/" |
|---|
| 21 |
|
|---|
| 22 |
NUM_LINKS_FOR_ALL_TAGS = 5 |
|---|
| 23 |
|
|---|
| 24 |
MAILER_DOMAIN = "agitator.jm3.net" |
|---|
| 25 |
MAILER_USER = "reminders+agitator.jm3.net" |
|---|
| 26 |
MAILER_PASSWORD = "wu21fnx8c3xA" |
|---|
| 27 |
|
|---|
| 28 |
# Bootstrap the Rails environment, frameworks, and default configuration |
|---|
| 29 |
require File.join(File.dirname(__FILE__), 'boot') |
|---|
| 30 |
# FIXME: don't check this in: |
|---|
| 31 |
#require "ruby-debug" |
|---|
| 32 |
|
|---|
| 33 |
Rails::Initializer.run do |config| |
|---|
| 34 |
# Settings in config/environments/* take precedence over those specified here. |
|---|
| 35 |
# Application configuration should go into files in config/initializers |
|---|
| 36 |
# -- all .rb files in that directory are automatically loaded. |
|---|
| 37 |
# See Rails::Configuration for more options. |
|---|
| 38 |
|
|---|
| 39 |
# Add additional load paths for your own custom dirs |
|---|
| 40 |
# config.load_paths += %W( #{RAILS_ROOT}/extras ) |
|---|
| 41 |
|
|---|
| 42 |
config.action_controller.session = { |
|---|
| 43 |
:session_key => '_agitator_session', |
|---|
| 44 |
:secret => '0875ba3fd4e32f6cd7c623ddb13763990e5cb3db7916e0922fa837dd68774116ed6278b2e9363ce29cdbeba84d309fef9cde9f0aea6d558bc595975060290efa' |
|---|
| 45 |
} |
|---|
| 46 |
|
|---|
| 47 |
end |
|---|
| 48 |
|
|---|
| 49 |
ActionMailer::Base.delivery_method = :smtp |
|---|
| 50 |
ActionMailer::Base.raise_delivery_errors = true |
|---|
| 51 |
ActionMailer::Base.smtp_settings = { |
|---|
| 52 |
:address => "localhost", |
|---|
| 53 |
:port => 26, |
|---|
| 54 |
:domain => MAILER_DOMAIN, |
|---|
| 55 |
:user_name => MAILER_USER, |
|---|
| 56 |
:password => MAILER_PASSWORD, |
|---|
| 57 |
:authentication => :login |
|---|
| 58 |
} |
|---|
| 59 |
|
|---|