From ca8b44f67fc83695fae8dd553bf1c5209fb8692b Mon Sep 17 00:00:00 2001 From: Joenio Costa Date: Wed, 23 Jun 2010 02:01:36 -0300 Subject: [PATCH] Clearing CSS and JS cache before to start the server --- script/production | 6 ++++++ 1 file changed, 6 insertions(+), 0 deletions(-) diff --git a/script/production b/script/production index 4d6dbde..e9f4068 100755 --- a/script/production +++ b/script/production @@ -5,6 +5,11 @@ export RAILS_ENV=production ACTION=$1 shift +clear_cache() { + rm -f ./public/javascripts/cache-*.js + rm -f ./public/stylesheets/cache.css +} + do_start() { if ! rake db:abort_if_pending_migrations; then echo "========================================" @@ -12,6 +17,7 @@ do_start() { exit 1 fi + clear_cache ./script/ferret_server -e $RAILS_ENV start ./script/feed-updater start mongrel_rails cluster::start -- libgit2 0.21.2