Changing cache_dir and log_dir with Symfony2

前端 未结 7 1693
星月不相逢
星月不相逢 2021-02-19 13:53

Because of deployment constraints, I would like to have the log and cache directories used by my Symfony2 application somewhere under /var/... in my file system. For this reason

7条回答
  •  广开言路
    2021-02-19 14:30

    i think the easiest way is to link the folder to another place. We have made this on the prod server but when you develop local perhaps on windows its a bit complicated to set the symlinks.

    ln -s /var/cache/ /var/www/project/app/cache
    

    something like this.

提交回复
热议问题