[Dbix-class] Re: Schema Loader Problem ( or is it in the restarter
code ????)
abhijith
abhijithg at deeproot.co.in
Wed Jan 10 04:10:33 GMT 2007
On Mon, 2007-01-08 at 18:45 +0000, dbix-class-request at lists.rawmode.org
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 ...
More information about the Dbix-class
mailing list