def run_assets_precompile_rake_task
    if File.exist?("public/assets/manifest.yml")
      puts "Detected manifest.yml, assuming assets were compiled locally"
      return true
    end

    precompile = rake.task("assets:precompile")
    return true unless precompile.is_defined?

    topic("Preparing app for Rails asset pipeline")

    precompile.invoke(env: rake_env)

    if precompile.success?
      puts "Asset precompilation completed (#{"%.2f" % precompile.time}s)"
    else
      precompile_fail(precompile.output)
    end
  end
runs the tasks for the Rails 3.1 asset pipeline