{"issue":{"title":"config.ru is not loaded by `middleman` command in 3.x","user":{"login":"bradgessler","id":4628,"url":"https://api.github.com/users/bradgessler","avatar_url":"https://secure.gravatar.com/avatar/fb75d95e696ee759c6db68ff4eac0429?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"fb75d95e696ee759c6db68ff4eac0429"},"created_at":"2011-12-28T21:09:14Z","milestone":null,"labels":[],"state":"open","updated_at":"2011-12-29T00:36:35Z","id":2674763,"closed_at":null,"html_url":"https://github.com/middleman/middleman/issues/217","pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"body":"I setup a new middleman project using `middleman init project_name --rack --bundler` so that I could add code highlighting to my project via Rack::CodeHighlighter, but when I run middleman via the `middleman` command, the contents of the config.ru file get skipped and my code highlighting functionality doesn't work.\r\n\r\nThe other alternative is that I can run the project via `thin -R config.ru -p 4567 start`, but then middleman doesn't reload the contents properly.\r\n\r\nHappy new year!","number":217,"url":"https://api.github.com/repos/middleman/middleman/issues/217","comments":2,"assignee":null},"comment":{"user":{"login":"bradgessler","id":4628,"url":"https://api.github.com/users/bradgessler","avatar_url":"https://secure.gravatar.com/avatar/fb75d95e696ee759c6db68ff4eac0429?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"fb75d95e696ee759c6db68ff4eac0429"},"created_at":"2011-12-29T00:36:35Z","updated_at":"2011-12-29T00:36:35Z","id":3296863,"body":"Oh I get it. I only glanced at the source code and missed that point. A tweaked the guide at https://github.com/bradgessler/middleman-guides/pull/new/patch-1?quick_pull=1 to prevent source-code glancers who are all too familiar with config.ru files, like myself, from making the same silly mistake.\r\n\r\nAnother option could be something like:\r\n\r\n```ruby\r\nmiddleware.use Rack::Codehighlighter,\r\n  :coderay,\r\n  :element => \"pre>code\",\r\n  :pattern => /\\A:::([-_+\\w]+)\\s*\\n/,\r\n  :markdown => true,\r\n  :css => :class\r\n```\r\n\r\nin the config.rb. `use` on its own feels like its coming out of nowhere or its in a .ru file.","url":"https://api.github.com/repos/middleman/middleman/issues/comments/3296863"},"action":"created"}