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

Changeset 309

Show
Ignore:
Timestamp:
02/02/08 20:30:58 (8 months ago)
Author:
jk
Message:

add task to symlink shared/index into current/

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/.gitignore

    r305 r309  
    11*.swp 
    22*.log 
     3demo/log/* 
    34demo/tmp/* 
    45demo/index/* 
  • trunk/plugin/acts_as_ferret/recipes/aaf_recipes.rb

    r302 r309  
    1111# deploy:{start|restart|stop} tasks so the server will be restarted along with 
    1212# the rest of your application. 
     13# Also an index directory in the shared folder will be created and symlinked 
     14# into current/ when you deploy. 
    1315# 
    1416# In order to use the ferret:rebuild task, declare the models you intend to 
     
    5456    end 
    5557  end 
     58 
     59  desc "symlinks index folder" 
     60  task :symlink_index, :roles => :app do 
     61    run "mkdir -p  #{shared_path}/index && rm -f #{current_path}/index && ln -s #{shared_path}/index #{current_path}/index" 
     62  end 
     63 
    5664end 
    5765 
     
    5967after "deploy:start",   "ferret:start" 
    6068after "deploy:restart", "ferret:restart" 
     69after "deploy:symlink", "ferret:symlink_index" 
     70 

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