Capistrano Symlinks Being Cached?

后端 未结 2 1899
南方客
南方客 2020-12-28 10:29

I\'ve been setting up PHP deployments with Capistrano on CentOS 6 and have run into an interesting issue. The way capistrano works, it sets up folders like this:

    <
2条回答
  •  萌比男神i
    2020-12-28 10:44

    I can't verify this, but it seems that there is some unpredictable behaviour with Apache following / caching the old location of symlinks:

    • Is there a way to mimic symlink behavior with an apache configuration?
    • Case Against Using Symlinks For Code Promotion

    The only thing that would absolutely clear up this issue was to cycle Apache, which we would prefer not to do on every deployment. -- Mike Brittain

    He suggests moving the whole directory, instead of updating the symlink.

提交回复
热议问题