namespace :sandbox_assets do desc "Run Sandboxed Assets server" task :serve => :environment do app = 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