Commit ca8b44f67fc83695fae8dd553bf1c5209fb8692b

Authored by Joenio Costa
1 parent 89c4c155

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,6 +5,11 @@ export RAILS_ENV=production
5 ACTION=$1 5 ACTION=$1
6 shift 6 shift
7 7
  8 +clear_cache() {
  9 + rm -f ./public/javascripts/cache-*.js
  10 + rm -f ./public/stylesheets/cache.css
  11 +}
  12 +
8 do_start() { 13 do_start() {
9 if ! rake db:abort_if_pending_migrations; then 14 if ! rake db:abort_if_pending_migrations; then
10 echo "========================================" 15 echo "========================================"
@@ -12,6 +17,7 @@ do_start() { @@ -12,6 +17,7 @@ do_start() {
12 exit 1 17 exit 1
13 fi 18 fi
14 19
  20 + clear_cache
15 ./script/ferret_server -e $RAILS_ENV start 21 ./script/ferret_server -e $RAILS_ENV start
16 ./script/feed-updater start 22 ./script/feed-updater start
17 mongrel_rails cluster::start 23 mongrel_rails cluster::start