#115 √ resolved
anon

(0.9.0) Developer Release - merb command starting server instead of creating new app

Reported by anon | February 16th, 2008 @ 05:30 AM

$ merb app_name

  1. server starts on port 4000--no 'app_name' app is being created by the merb command.

i'm using (0.9.0) Developer Release. i'm aware the command to start the server (from within a merb project) is just 'merb' so i'm confused why it's not recognizing my app_name...

Comments and changes to this ticket

  • Geoffrey Grosenbach

    Geoffrey Grosenbach February 16th, 2008 @ 05:43 AM

    This is the expected behavior.

    The merb-gen creates applications now. The merb command only starts and stops the webserver.

  • Loren Segal

    Loren Segal February 16th, 2008 @ 05:59 AM

    On a semi-related topic, running `merb` in a directory which has no app will still launch the server, creating a log directory and spawning Mongrel/etc.

    It would probably be better from a UI standpoint to notify the user that there is no app to execute, since you probably don't want to start creating files all over the place if someone were to type merb in the wrong terminal. I can't tell you how you would detect an app, though, given that the regular, --flat and --very-flat app structures all differ greatly.

  • anon

    anon February 16th, 2008 @ 06:29 AM

    Thanks for the help Geoffrey. I now created an app successfully, however, upon starting the server I now get this message:

    /usr/local/lib/ruby/gems/1.8/gems/merb-core-0.9.0/lib/merb-core/core_ext/kernel.rb:26:in `require': no such file to load -- merb_rspec (LoadError)

    Should I create a new ticket, or am I overlooking something else? Is there any docs covering these generators for 0.9? Thanks.

  • Shay Arnett

    Shay Arnett February 26th, 2008 @ 11:02 PM

    Known bug, squashed in latest git version.

  • Yehuda Katz (wycats)

    Yehuda Katz (wycats) February 28th, 2008 @ 09:47 PM

    • → State changed from “new” to “resolved”

    I'm marking this resolved, but how do we detect whether the app is a "Merb app"; with the new single-file apps, it might be more difficult to detect whether an app is a Merb app before trying to load it.

Please Login or create a free account to add a new comment.

You can update this ticket by sending an email to from your email client. (help)

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »