Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

[PATCH] Allow PKG_NAME env variable to control the directory name used when 'rake dev' is used to generate a new rails app.

#3278

This one-line patch allows you to specify the PKG_NAME environment variable when running 'rake dev' to control the directory the new rails app is created in. By default, it is always placed in /rails.

This patch has been particularly helpful for the bugmash where I have been generating lots of sample apps to test bugs and patches. It allows me to keep a couple different apps around at a time.

  rake dev PKG_NAME=whatever_i_want_to_call_it

Reported by John Trupiano · September 27th, 2009 @ 03:22 PM

State: committed
Milestone: none
Assigned to: nobody
Importance: none

Activity

  1. Elomar França
    Elomar França

    +1, verified.

    I agree with this addition, and the patch applies cleanly to master and 2-3-stable.

    September 27th, 2009 @ 03:48 PM

  2. sr.iniv.t
    sr.iniv.t

    +1 verified.

    The patch applies cleanly on 2-3-stable and master. I've wished for something like this while doing bug verifications.

    September 27th, 2009 @ 06:51 PM

  3. Mike Enriquez
    Mike Enriquez

    +1 verified. Applies to 2-3-stable and master. Setting a combination of RAILS_PKG_DESTINATION and PKG_NAME with the destination in .gitignore makes a lot of sense.

    September 27th, 2009 @ 08:07 PM

  4. Mike Enriquez
    Mike Enriquez
    • Tag changed from 2-3-stable, bugmash, feature, patch, rake, rake_dev to 2-3-stable, bugmash-review, feature, patch, rake, rake_dev

    September 27th, 2009 @ 08:09 PM

  5. Gaius Centus Novus
    Gaius Centus Novus

    +1 It doesn't solve a problem I'm having, but it applies cleanly to 2.3 stable and isn't exactly bloat.

    September 27th, 2009 @ 10:05 PM

  6. Repository
    Repository
    • State changed from new to committed

    (from [e01f99786a586e41a36d3c1ddc66f080d04b4036]) Allow PKG_NAME env variable to control the directory name used when 'rake dev' is used to generate a new rails app.

    Signed-off-by: Michael Koziarski michael@koziarski.com
    [#3278 state:committed] http://github.com/rails/rails/commit/e01f99786a586e41a36d3c1ddc66f0...

    September 28th, 2009 @ 03:29 AM

  7. Rizwan Reza
    Rizwan Reza
    • Tag changed from 2-3-stable, bugmash-review, feature, patch, rake, rake_dev to 2-3-stable, feature, patch, rake, rake_dev

    May 15th, 2010 @ 06:42 PM