4

I'm trying to automate my deployment process and I'm having this strange issue. Every new version of my web app is placed in /var/www/releases/{timestamp}. After I execute git clone into that directory I make a symlink to /var/www/current. Then I execute service nginx reload. The approach is used by many deployment tools and is well thought.

The problem is that when I go to a web browser to see the changes and hit refresh multiple times, I can see both releases (current and previous) alternating for several seconds/minutes. After a while it stabilizes on the current version only.

Does anybody know what might be causing this issue?

Thank you

1 Answer 1

2

There may be some cache in your nginx. Have you turned on your nginx cache? This thread may help https://stackoverflow.com/questions/6236078/how-to-clear-the-cache-of-nginx

2
  • 1
    Setting sendfile off solved this issue, thank you @imapollo Apr 25, 2013 at 9:58
  • I've set sendfile off in the server directive, restarted nginx and still have this problem May 31, 2015 at 5:34

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .