Run middleman with pow and bundler
Create a config.ru with this content:
require 'rubygems'
require 'middleman'
require 'middleman-core/preview_server'
module Middleman::PreviewServer
def self.preview_in_rack
@options = { latency: 0.3 }
@app = new_app
start_file_watcher
end
end
Middleman::PreviewServer.preview_in_rack
run Middleman::PreviewServer.app.class.to_rack_app
Written by Victor Ortiz
Related protips
2 Responses
I do not know why @app appear as a html link on the code example, it's not.
Now I always use my own middleman template with this config.ru and some basic asset folder structure.
over 1 year ago
·
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Ruby
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#