Skip to content
Browse files

run assets:precompile across the whole ruby lp

  • Loading branch information...
1 parent 04788ac commit de96ed17620e6eefcd189cf386cb614ed0e24cb1 @hone hone committed Oct 10, 2011
Showing with 9 additions and 6 deletions.
  1. +1 −6 lib/language_pack/rails3.rb
  2. +8 −0 lib/language_pack/ruby.rb
View
7 lib/language_pack/rails3.rb
@@ -27,19 +27,14 @@ def default_process_types
})
end
- def compile
- super
- allow_git { setup_asset_pipeline }
- end
-
private
def plugins
super.concat(%w( rails3_serve_static_assets )).uniq
end
# runs the tasks for the Rails 3.1 asset pipeline
- def setup_asset_pipeline
+ def run_assets_precompile_rake_task
log("assets_precompile") do
if rake_task_defined?("assets:precompile")
topic("Preparing app for Rails asset pipeline")
View
8 lib/language_pack/ruby.rb
@@ -48,6 +48,7 @@ def compile
build_bundler
create_database_yml
install_binaries
+ allow_git { run_assets_precompile_rake_task }
end
end
@@ -293,4 +294,11 @@ def add_shared_database_addon
def add_node_js_binary
gem_is_bundled?('execjs') ? [NODE_JS_BINARY_PATH] : []
end
+
+ def run_assets_precompile_rake_task
+ if rake_task_defined?("assets:precompile")
+ topic "Running: rake assets:precompile"
+ pipe("env PATH=$PATH:bin bundle exec rake assets:precompile 2>&1")
+ end
+ end
end

0 comments on commit de96ed1

Please sign in to comment.
Something went wrong with that request. Please try again.