Sha256: 56055020dbafe69cd87402c37c96580adfca55877c43c7e16338c087497d87af

Contents?: true

Size: 384 Bytes

Versions: 4

Compression:

Stored size: 384 Bytes

Contents

namespace :sandbox_assets do
  desc "Run Sandboxed Assets server"
  task :serve => :environment do
    Rails.application.tap do |app|
      app.routes.draw { mount SandboxAssets::Engine => '/' }
      port = app.config.sandbox_assets.port

      puts "Your assets will be soon available at http://localhost:#{port}\n\n"
      Rack::Server.start app: app, Port: port
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rails-sandbox-assets-0.2.1 lib/tasks/sandbox_assets.rake
rails-sandbox-assets-0.2.0 lib/tasks/sandbox_assets.rake
rails-sandbox-assets-0.1.3 lib/tasks/sandbox_assets.rake
rails-sandbox-assets-0.1.2 lib/tasks/sandbox_assets.rake