Skip to content

Commit

Permalink
Make task smarter by not trying to copy files that don't exist.
Browse files Browse the repository at this point in the history
  • Loading branch information
parndt committed Aug 31, 2010
1 parent 1082b34 commit dc4cd34
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions bin/refinerycms
Expand Up @@ -129,8 +129,8 @@ module Refinery
FileUtils::cp_r Refinery.root.join(folder), @app_path, :verbose => false
end
%w(.gitignore config/routes.rb config/settings.rb config/environments/production.rb config/initializers/acts_as_indexed_config.rb
config/initializers/field_with_error_fix.rb config/initializers/fix_rack.rb config/initializers/locale.rb).each do |file|
FileUtils::cp_r Refinery.root.join(file), @app_path.join(file), :verbose => false
config/initializers/field_with_error_fix.rb config/initializers/fix_rack.rb).each do |file|
FileUtils::cp_r Refinery.root.join(file), @app_path.join(file), :verbose => false if Refinery.root.join(file).exist?
end

# Remove default application layout and public/index.html
Expand Down
2 changes: 0 additions & 2 deletions config/initializers/acts_as_indexed_config.rb
@@ -1,5 +1,3 @@
# The acts_as_indexed instructions tell us to put this in environment/initializers/
# but that doesn't work so we're putting it here and requiring it using refinery.
ActsAsIndexed.configure do |config|
config.index_file = Rails.root.join('tmp', 'index')
config.index_file_depth = 3
Expand Down

0 comments on commit dc4cd34

Please sign in to comment.