Skip to content

Commit

Permalink
Fix permissions problems.
Browse files Browse the repository at this point in the history
  • Loading branch information
DAddYE committed May 11, 2011
1 parent 1231ffc commit c644c3f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 18 deletions.
10 changes: 0 additions & 10 deletions admin/app.rb
Expand Up @@ -3,16 +3,6 @@ class Admin < Padrino::Application
register Padrino::Mailer
register Padrino::Admin::AccessControl

set :session_secret, "7043bc560e73c46f0d5eabedbabd217f9f5277e6935047bb9430296ab7b47a44"
set :sessions, true
set :delivery_method, :smtp => {
:address => 'smtp.lipsiasoft.com',
:port => '25',
:user_name => 'mailer@lipsiasoft.com',
:password => 'mailer!',
:authentication => :login # :plain, :login, :cram_md5, no auth by default
}

# App setting
set :email_from, "Padrino WebSite <noreply@padrinorb.com>"
set :domain, "http://www.padrinorb.com"
Expand Down
8 changes: 0 additions & 8 deletions app/app.rb
Expand Up @@ -5,14 +5,6 @@ class PadrinoWeb < Padrino::Application
register Padrino::Contrib::ExceptionNotifier
register Padrino::Contrib::Helpers::AssetsCompressor if Padrino.env == :production
set :caching, true
set :sessions, true
set :delivery_method, :smtp => {
:address => 'smtp.lipsiasoft.com',
:port => '25',
:user_name => 'mailer@lipsiasoft.com',
:password => 'mailer!',
:authentication => :login # :plain, :login, :cram_md5, no auth by default
}
set :exceptions_subject, "PadrinoWeb"
set :exceptions_from, "Padrino WebSite <exceptions@padrinorb.com>"
set :exceptions_to, Account.all.map(&:email)
Expand Down
8 changes: 8 additions & 0 deletions config/apps.rb
Expand Up @@ -12,7 +12,15 @@
=end

Padrino.configure_apps do
set :sessions, true
set :session_secret, '339ed174e13302a1c6f090df5ebf2b6df9d8e153f21df757229e0629aa143321'
set :delivery_method, :smtp => {
:address => 'smtp.lipsiasoft.com',
:port => '25',
:user_name => 'mailer@lipsiasoft.com',
:password => 'mailer!',
:authentication => :login # :plain, :login, :cram_md5, no auth by default
}
end

# Mounts the core application for this project
Expand Down

0 comments on commit c644c3f

Please sign in to comment.