[jifty-devel] Re: [Jifty-commit] r828 - jifty/trunk/lib/Jifty/Script

Jesse Vincent jesse at bestpractical.com
Mon Apr 10 11:00:41 EDT 2006


Audrey:

Could you redo this patch to use framework('Web')->{DataDir} from the
config file instead of hardcoding?

On Mon, Apr 10, 2006 at 10:23:02AM -0400, jifty-commit at lists.jifty.org wrote:
> Author: autrijus
> Date: Mon Apr 10 10:23:02 2006
> New Revision: 828
> 
> Modified:
>    jifty/trunk/lib/Jifty/Script/Server.pm
> 
> Log:
> * `jifty server` now rm-rf's the var/mason/{obj,cache} directories,
>   so developing under DevelMode=0 is at least possible. :-)
> 
> Modified: jifty/trunk/lib/Jifty/Script/Server.pm
> ==============================================================================
> --- jifty/trunk/lib/Jifty/Script/Server.pm	(original)
> +++ jifty/trunk/lib/Jifty/Script/Server.pm	Mon Apr 10 10:23:02 2006
> @@ -6,6 +6,7 @@
>  
>  use Jifty::Everything;
>  use Jifty::Server;
> +use File::Path ();
>  
>  
>  =head1 NAME
> @@ -43,6 +44,9 @@
>  sub run {
>      my $self = shift;
>      
> +    # Purge stale mason cache data
> +    File::Path::rmtree(['var/mason/cache', 'var/mason/obj']) if -d 'var/mason';
> +
>      Jifty->new();
>      Jifty::Server->new(port => $self->{port})->run;
>  }
> _______________________________________________
> Jifty-commit mailing list
> Jifty-commit at lists.jifty.org
> http://lists.jifty.org/cgi-bin/mailman/listinfo/jifty-commit
> 

-- 


More information about the jifty-devel mailing list