Changeset 99 in bookmarks for trunk


Ignore:
Timestamp:
06/10/15 16:41:19 (10 years ago)
Author:
peter
Message:
  • removed the app.psgi script in favor of using the start script (which calls Plack::Runner)
  • remvoed the config_file property from the BookmarkApp; now all configuration to it should be passed in as a hashref to config; reading config files is now solely the responsibility of the wrapper scripts
Location:
trunk
Files:
1 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/BookmarksApp.pm

    r98 r99  
    55 
    66use parent qw{Plack::Component}; 
    7 use Plack::Util::Accessor qw{config_file config _app _controller}; 
     7use Plack::Util::Accessor qw{config _app _controller}; 
    88 
    99use YAML; 
     
    1818 
    1919    my $config = $self->config; 
    20  
    21     # if the config_file is set, try to load the config from there 
    22     # note that currently, if there is a config_file and a config, 
    23     # all of the values in config are ignored in favor of those in 
    24     # the config_file 
    25     if ($self->config_file) { 
    26         -e $self->config_file or die "Config file " . $self->config_file . " not found\n"; 
    27         $config = YAML::LoadFile($self->config_file); 
    28         #TODO: merge the configs instead of overwriting? 
    29         $self->config($config); 
    30     } 
    3120 
    3221    my $router = router { 
Note: See TracChangeset for help on using the changeset viewer.