Heh.  I took a slightly different approach, and use this command to run
any symfony task from anywhere in a symfony project directory tree:

-------------------
#!/bin/sh

while [ ! -f symfony ]; do
  cd ..
  if [ `pwd` = '/' ]; then
    exit 1
  fi
done

./symfony $@

exit 0
-------------------

noel t wrote:
> We have this problem too.  I never considered it a big deal, and just
> wrote this shell script:
>
> [ bin]$ cat clearcache.sh
> #!/bin/bash
>
> pwd=`pwd`
> who=`whoami`
> where="$who"
>
> if [ "$who" == "root" ]; then
>   where="blah"
>   cd /var/www/html/$where/
> else
>   cd ~/blah/
> fi
>
> symfony cc
> wget http://yoursite.org/$where/index.php -O /dev/null
> cd $pwd
>
> modify as you need...This way I can call symfony cc from anywhere in my
> dev structure, and it'll keep me there. the wget auto fills the cache
> right back up...
>
> Cheers,
>
> Noel
>
> Ian wrote:
> > I've had this problem for awhile, so I'll see if anyone else has it
> > too.
> >
> > After I clear the cache (symfony cc), the first load of the application
> > in production mode generates an error in my apache error log:
> >
> > PHP Fatal error:  Cannot redeclare class sflogger in
> > path/to/project/cache/app/prod/config/config_core_compile.yml.php on
> > line 1058
> >
> > If I refresh the page, the error is no more and everything is back to
> > normal.  It seems that symfony has a problem when trying to re-cache
> > the config files. Does anyone have any idea what is causing this to
> > happen?
> >
> >
> > >
> >


--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups 
"symfony developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-devs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to