Changeset 2 for apps/trunk/lib/Sophie.pm
- Timestamp:
- 11/08/10 08:01:52 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
apps/trunk/lib/Sophie.pm
r1 r2 2 2 use Moose; 3 3 use namespace::autoclean; 4 5 4 use Catalyst::Runtime 5.80; 5 use Sophie::Base; 6 6 7 7 # Set flags and add plugins for the application … … 14 14 15 15 use Catalyst qw/ 16 -Debug17 16 ConfigLoader 18 17 Static::Simple 18 Session 19 Session::Store::DBI 20 Session::State::Cookie 21 Compress::Zlib 22 Server 23 Server::XMLRPC 19 24 /; 20 25 … … 37 42 # Disable deprecated behavior needed by old applications 38 43 disable_component_resolution_regex_fallback => 1, 44 # default_view => 'TT', 39 45 ); 46 47 __PACKAGE__->config->{session} = { 48 expires => 31536000, 49 dbi_dsn => 'noo', 50 dbi_table => 'sessions', 51 }; 40 52 41 53 # Start the application 42 54 __PACKAGE__->setup(); 55 56 # This is after because db config is in config file 57 __PACKAGE__->config->{session}{dbi_dsn} = 58 'dbi:Pg:' . __PACKAGE__->config->{dbconnect}; 59 __PACKAGE__->config->{session}{dbi_user} = 60 __PACKAGE__->config->{dbuser}; 61 __PACKAGE__->config->{session}{dbi_pass} = 62 __PACKAGE__->config->{dbpassword}; 43 63 44 64
Note: See TracChangeset
for help on using the changeset viewer.