by
0
4
2,690
0
Top 1% !
Popular
Famous
Specified
Popularity: 4777th place
Created
Modified Sep 1, 2014

Published on:

No tags for this snippet yet.
LanguageRuby
LicenseMIT_X11
SourceGitHub

Middleman config.ru for usage with pow/anvil for mac

Middleman config.ru for usage with pow/anvil for mac: 
config.ru
Copy Embed Code
<iframe id="embedFrame" style="width:600px; height:300px;"
src="https://www.snip2code.com/Embed/145107/Middleman-config-ru-for-usage-with-pow-a?startLine=0"></iframe>
Click on the embed code to copy it into your clipboard Width Height
Leave empty to retrieve all the content Start End
# From: https://github.com/middleman/middleman/pull/560 require "rubygems" require "middleman-core/load_paths" Middleman.setup_load_paths require "middleman-core" require "middleman-core/preview_server" module Middleman::PreviewServer def self.preview_in_rack @options = { latency: 0.25 } @app = new_app start_file_watcher end end Middleman::PreviewServer.preview_in_rack run Middleman::PreviewServer.app.class.to_rack_app
If you want to be updated about similar snippets, Sign in and follow our Channels