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.

script/* does not run in windows when running an application template

#1859

There is reliance on #! to identity that script/* files should be run with ruby within template_runner.rb that mean these will not function under a windows environment.

A replacement file for template_runner.rb is attached

Reported by Jens Kolind · February 3rd, 2009 @ 11:05 AM

State: resolved
Milestone: none
Assigned to: Pratik Pratik
Importance: none

Activity

  1. Jens Kolind
    Jens Kolind
    • Tag changed from 2.3, template, template_runner, win32, windows to 2.3, patch, template, template_runner, win32, windows

    Update to include a patch for template_runner

    February 3rd, 2009 @ 01:07 PM

  2. DHH
    DHH
    • Milestone cleared.
    • Assigned user set to Pratik

    February 5th, 2009 @ 07:21 PM

  3. Repository
    Repository
    • State changed from new to resolved

    (from [2414fdb244cc0ba97620dd3f50e269d2e26c7392]) Ensure template_runner can run script/* ruby scripts under Windows. [#1859 script/* does not run in windows when running an application template state:resolved]

    Signed-off-by: Pratik Naik pratiknaik@gmail.com http://github.com/rails/rails/co...

    February 16th, 2009 @ 07:24 PM

  4. Umair Siddique
    Umair Siddique

    3 other methods as well.

    rake capify! freeze!

    capify and rake will need to be suffixed with .bat.

    For example, right now, this is what I use to make it work on Windows.

    rake 'asset:packager:create_yml' rescue run 'rake.bat asset:packager:create_yml' capify! rescue run 'capify.bat .'

    February 16th, 2009 @ 11:19 PM