search for: cp_database_yaml

Displaying 1 result from an estimated 1 matches for "cp_database_yaml".

2006 Jan 16
1
switchtower custom tasks question.
...y.rb: # custom tasks desc "copy another dispatch.fcgi, which gets deleted" task :cp_dispatch_fcgi do File.copy("/path/to/other_app/public_html/dispatch.fcgi", "/path/to/current/public/dispatch.fcgi") end desc "copy database.example to database.yaml" task :cp_database_yaml do put(File.read(''/path/to/current/db/database.example''), "/path/to/current/db/database.yml", :mode => 0444) end and then: desc "deploy" task :deploy do transaction do update_code update_current cp_dispatch_fcgi cp_database_yaml end e...