On Mon, 2007-01-08 at 18:45 +0000, [EMAIL PROTECTED]
wrote:
> But it seems to happen all the time for this guy so maybe
> it's a bug or something.
> 
> -Nilson Santos F. Jr.
> 


Restarter doesn't watch the Database for changes ('m talking about direct
modifications to the database and NOT through the database handle.)

Here's where ( i *think* ) the Restarter is failing ....
Restarter watches the files in MyApp directory and its sub-dirs for any
changes, makes a list of those files and reloads it 
-----------------------------------------------------------------------
    my $watcher = Catalyst::Engine::HTTP::Restarter::Watcher->new(
        directory => '/path/to/MyApp',
        regex     => '\.yml$|\.yaml$|\.pm$',
        delay     => 1,
    );
    
    while (1) {
        my @changed_files = $watcher->watch();
    }
-----------------------------------------------------------------------

since there it detects NO changes whatsoever in SchemaClass.pm (when the
database is modified directly ), it doesn't bother to reload the
Schema ... 

@changed_files remains empty and Restarter sits peacefully as if nothing
has changed ...





_______________________________________________
List: http://lists.rawmode.org/cgi-bin/mailman/listinfo/dbix-class
Wiki: http://dbix-class.shadowcatsystems.co.uk/
IRC: irc.perl.org#dbix-class
SVN: http://dev.catalyst.perl.org/repos/bast/trunk/DBIx-Class/
Searchable Archive: http://www.mail-archive.com/[email protected]/

Reply via email to