public
Description: Rails application to help herd cats when choosing a lunch destination
Homepage: http://clubcar.slackers.net/
Clone URL: git://github.com/erikogan/clubcar.git
clubcar / Capfile
100644 20 lines (17 sloc) 0.78 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
load 'deploy' if respond_to?(:namespace) # cap2 differentiator
Dir['vendor/plugins/*/recipes/*.rb'].each { |plugin| load(plugin) }
load 'config/deploy'
 
namespace :deploy do
# task :start, :roles => :app do
# run "touch #{deploy_to}/current/tmp/restart.txt"
# end
  
# task :restart, :roles => :app do
# run "touch #{deploy_to}/current/tmp/restart.txt"
# end
 
  task :after_symlink, :roles => :app do
    run "mkdir -p #{deploy_to}/current/public/stylesheets ; fs sa #{deploy_to}/current/public/stylesheets webmaster write"
    run "cd #{deploy_to}/current ; rake niftycube:install"
    # run "rm -f ~/public_html;ln -s #{deploy_to}/current/public ~/public_html"
    # run "ln -s #{deploy_to}/shared/database.yml #{deploy_to}/current/config/database.yml"
  end
end