Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rack server support is broken #1501

Closed
Domon opened this issue Apr 23, 2015 · 2 comments
Closed

Rack server support is broken #1501

Domon opened this issue Apr 23, 2015 · 2 comments

Comments

@Domon
Copy link

Domon commented Apr 23, 2015

Steps to reproduce

  1. Initialize a Middleman project with middleman init --rack.
  2. Run any command to initialize a rack server, e.g. rackup, puma, ...

Expected behavior

A rack server is up and running.

Actual behavior

An error is raised:

NoMethodError: undefined method `server' for Middleman:Module

Affected version

I found that this regression is caused by 14104aa, so the rack server support is broken in versions after that commit, i.e. v3.3.9, v3.3.10.

@tdreyno
Copy link
Member

tdreyno commented Apr 23, 2015

Thanks for reporting, will investigate.

@inem
Copy link

inem commented Nov 6, 2017

It looks like this no longer works again.

I've got the same undefined method 'server' for Middleman:Module (NoMethodError) with the fresh version of middleman.

My Gemfile:

source 'https://rubygems.org'

gem 'middleman', '~> 4.2'
gem 'middleman-autoprefixer', '~> 2.7'
gem 'tzinfo-data', platforms: [:mswin, :mingw, :jruby]
gem 'wdm', '~> 0.1', platforms: [:mswin, :mingw]

gem 'unicorn'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants