Changeset 112
- Timestamp:
- 06/28/07 11:22:14 (2 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/1-7-stable/lib/deprec/generators/deprec/templates/deploy.rb
r86 r112 34 34 # Automatically symlink these directories from current/public to shared/public. 35 35 # set :app_symlinks, %w{photo, document, asset} 36 37 # ============================================================================= 38 # SPECIAL OPTIONS 39 # ============================================================================= 40 # These options allow you to tweak deprec behaviour 41 42 # If you do not keep database.yml in source control, set this to false. 43 # After new code is deployed, deprec will symlink current/config/database.yml 44 # to shared/config/database.yml 45 # 46 # You can generate shared/config/database.yml with 'cap generate_database_yml' 47 # 48 # set :database_yml_in_scm, true 36 49 37 50 # ============================================================================= branches/1-7-stable/lib/deprec/recipes/rails.rb
r105 r112 1 1 Capistrano.configuration(:must_exist).load do 2 3 set :database_yml_in_scm, true 2 4 3 5 # database.yml stuff … … 33 35 34 36 35 task :gen _db_yml, :roles => :app do37 task :generate_database_yml, :roles => :app do 36 38 database_configuration = render :template => <<-EOF 37 39 #{rails_env}: … … 48 50 49 51 task :after_update_code, :roles => :app do 50 symlink_database_yml 52 symlink_database_yml unless database_yml_in_scm 51 53 end 52 54
