aerobicio / aerobic.io

Fitness tracking for friends
1 stars 1 forks source link

Clear rails cache on deploy #186

Closed plasticine closed 10 years ago

plasticine commented 10 years ago

Had to manually Rails.cache.clear when deploying the activity styling/markup changes, meanwhile the UI was busted.

We need a strategy for doing this automatically somehow on deploy.

quamen commented 10 years ago

It should just happen if the partials have changed.

Doesn't happen when:

plasticine commented 10 years ago

Partials definitely changed :/

plasticine commented 10 years ago

I think having to explicitly clear the cache on deploy makes deploys more fragile as it introduces a human error component (forget to/didn’t realise it needed doind, etc) to deploys. Esp true now that we are auto deploying.

I think it is worth the small post-deploy perf hit to clear on deploy. Thoughts?

quamen commented 10 years ago

Sure, add it to the post deploy section in wercker.yml after the migrations are run.