rack-devel archive mirror (unofficial) https://groups.google.com/group/rack-devel
 help / color / mirror / Atom feed
* rackup -D breakage
@ 2010-03-22 16:22 candlerb
  0 siblings, 0 replies; only message in thread
From: candlerb @ 2010-03-22 16:22 UTC (permalink / raw)
  To: Rack Development

Just wanted to report some breakage when upgrading a system from
rack-1.0.1 to rack-1.1.0

It seems that rackup -D is now forcing a change directory to root. As
a result:

(1)
    rackup .....orig_params..... -D

failed with no obvious error; stracing the process showed that it was
failing to open config.ru

So this is fixable by changing it to

    rackup .....orig_params..... -D /path/to/config.ru

(2)
But then my app failed because 'require "foo"' couldn't find library
foo. So I had to change the config.ru itself to say:

    APP_ROOT = File.expand_path(File.dirname(__FILE__))
    Dir.chdir APP_ROOT
    ...

It's not a big issue now I know what the problem is, but I thought I'd
report it anyway, as it took some head-scratching to fix. Running the
app in foreground mode wasn't any help, because in that mode it was
working just fine!

Regards,

Brian.

To unsubscribe from this group, send email to rack-devel+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-03-22 16:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-03-22 16:22 rackup -D breakage candlerb

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).