Changeset 97
- Timestamp:
- 06/21/07 18:56:35 (2 years ago)
- Files:
-
- branches/1-7-stable/lib/deprec/recipes/trac.rb (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/1-7-stable/lib/deprec/recipes/trac.rb
r93 r97 1 1 Capistrano.configuration(:must_exist).load do 2 2 3 set :trac_password_file, lambda { "#{trac_path}/conf/users.htdigest" } 4 set :trac_pidfile, lambda { "#{deploy_to}/shared/pids/trac.pid" } 5 set :tracd_port, '9000' 3 6 set (:trac_path) do 4 7 deploy_to ? "#{deploy_to}/trac" : Capistrano::CLI.prompt('path to trac config: ') … … 44 47 task :trac_start, :roles => :scm do 45 48 # XXX enable this for cap2 46 # XXX run "echo point your browser to http://$CAPISTRANO:HOST$:8000/trac" 47 auth_string = "--auth=*,#{trac_path}/conf/users.htdigest,#{application}" 48 sudo "tracd #{auth_string} --port 8000 #{trac_path}" 49 # XXX run "echo point your browser to http://$CAPISTRANO:HOST$:#{tracd_port}/trac" 50 auth_string = "--auth=*,#{trac_password_file},#{application}" 51 sudo "tracd #{auth_string} --daemonize --single-env --port=#{tracd_port} --pidfile=#{trac_pidfile} #{trac_path}" 52 end 53 54 task :trac_stop, :roles => :scm do 55 sudo "kill `cat #{trac_pidfile}`" 49 56 end 50 57
