-
-
Notifications
You must be signed in to change notification settings - Fork 37
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
CLI Support for rackup
or config.ru
Rack application?
#8
Comments
rackup -S agoo should work right now but since rack does not name agoo in the like require agoo is needed to allow that. |
I tried Using a capital iodine works with Perhaps it has to do with this folder structure or this line... I can't remember what finally worked, but something did, I think maybe both were required. |
I got it to work with a capital A in $ RACK_ENV=production rackup -p 3000 -r agoo -s Agoo IMHO, CLI integration could be improved, but the important part is that I got it running. Thanks! |
I need more feedback to improve. Your feedback helps. Am typing from a phone so the -s was autocorrected. I remember now about capital A in Agoo. Rack expected that as the case sensitive module or class name. |
Maybe register two names ;-) |
Maybe. Pretty ugly work around.
… On Mar 25, 2018, at 17:42, Bo ***@***.***> wrote:
Rack expected that as the case sensitive module or class name.
Maybe register two names ;-)
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
This might help: ::Rack::Handler.register('agoo', 'Rack::Handler::Agoo') if defined?(::Rack::Handler) |
Thanks. I think I was doing it the hard way.
… On Mar 25, 2018, at 18:29, Bo ***@***.***> wrote:
This might help:
::Rack::Handler.register('agoo', 'Rack::Handler::Agoo') if defined?(::Rack::Handler)
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
The 1.2.2 release should allow lower case |
All working. Closing. |
HI,
I was wondering if there's any way to run Rack applications from the command line interface (CLI)?
The default Rack application file is
config.ru
and it might contain anything from a Rails application to a simple Hello World (exampleconfig.ru
file):These can be executed using the
rackup
command using Puma, iodine, Thin, etc' by adding the-s
flag.Could
agoo
be added to this?I'd love to be able to run Rails, Sinatra or any other application using:
The downside is that
rackup
sometimes automatically adds middleware to the application (in development mode), so I'd be slightly happier if the CLI itself could run theconfig.ru
app... This way, the Rack application could be executed without any surprises whenagoo
is called in the same folder as the app. i.e.:I know this will break backwards compatibility for the CLI, but using
rackup
should be possible without breaking backwards compatibility, shouldn't it?The text was updated successfully, but these errors were encountered: