To edit pages or tickets please login with username/password: aaf/aaf

Changeset 316

Show
Ignore:
Timestamp:
02/04/08 13:43:15 (8 months ago)
Author:
jk
Message:

#200 and #201

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/plugin/acts_as_ferret/recipes/aaf_recipes.rb

    r315 r316  
    3131# acts_as_ferret so the declaration of these variables in deploy.rb isn't  
    3232# necessary anymore would be really cool ;-) 
     33# 
     34# 
     35# HINT: To be very sure that your DRb server and application are always using 
     36# the same model and schema versions, and you never lose any index updates because 
     37# of the DRb server being restarted in that moment, use the following sequence 
     38# to update your application: 
     39# 
     40# cap deploy:stop deploy:update deploy:migrate deploy:start 
     41# 
     42# That will stop the DRb server after stopping your application, and bring it 
     43# up before starting the application again. Plus they'll never use different 
     44# versions of model classes (which might happen otherwise) 
     45# Downside: Your downtime is a bit longer than with the usual deploy, so be sure to 
     46# put up some maintenance page for the meantime. 
    3347 
    3448namespace :ferret do 
     
    7993end 
    8094 
    81 after "deploy:stop",    "ferret:stop" 
    82 after "deploy:start",   "ferret:start" 
    83 after "deploy:restart", "ferret:restart" 
     95after  "deploy:stop",    "ferret:stop" 
     96before "deploy:start",   "ferret:start" 
     97 
     98before "deploy:restart", "ferret:stop" 
     99after  "deploy:restart", "ferret:start" 
    84100after "deploy:symlink", "ferret:index:symlink" 
    85101 

To edit pages or tickets please login with username/password: aaf/aaf