rack-devel archive mirror (unofficial) https://groups.google.com/group/rack-devel
 help / color / mirror / Atom feed
From: candlerb <b.candler@pobox.com>
To: Rack Development <rack-devel@googlegroups.com>
Subject: rackup -D breakage
Date: Mon, 22 Mar 2010 09:22:13 -0700 (PDT)	[thread overview]
Message-ID: <518aa0ec-4dfd-4b63-91ae-f0347b089e7e@t41g2000yqt.googlegroups.com> (raw)

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.

                 reply	other threads:[~2010-03-22 16:22 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://groups.google.com/group/rack-devel

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=518aa0ec-4dfd-4b63-91ae-f0347b089e7e@t41g2000yqt.googlegroups.com \
    --to=rack-devel@googlegroups.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).