Commit ca8b44f67fc83695fae8dd553bf1c5209fb8692b
1 parent
89c4c155
Exists in
staging
and in
42 other branches
Clearing CSS and JS cache before to start the server
(ActionItem1570)
Showing
1 changed file
with
6 additions
and
0 deletions
Show diff stats
script/production
... | ... | @@ -5,6 +5,11 @@ export RAILS_ENV=production |
5 | 5 | ACTION=$1 |
6 | 6 | shift |
7 | 7 | |
8 | +clear_cache() { | |
9 | + rm -f ./public/javascripts/cache-*.js | |
10 | + rm -f ./public/stylesheets/cache.css | |
11 | +} | |
12 | + | |
8 | 13 | do_start() { |
9 | 14 | if ! rake db:abort_if_pending_migrations; then |
10 | 15 | echo "========================================" |
... | ... | @@ -12,6 +17,7 @@ do_start() { |
12 | 17 | exit 1 |
13 | 18 | fi |
14 | 19 | |
20 | + clear_cache | |
15 | 21 | ./script/ferret_server -e $RAILS_ENV start |
16 | 22 | ./script/feed-updater start |
17 | 23 | mongrel_rails cluster::start | ... | ... |