This project is archived and is in readonly mode.
let rails use load to interpret script/rails
-
Xavier Noria
- Assigned user set to DHH
Added a new patch that in addition recurses upwards searching for script/rails.
-
Xavier Noria
Using load has also issues, because if you have an app running the rails 3.0 gem, and your rails command belongs to the rails 3.1 gem, the rails gem has already been activated to 3.1.
We pondered options with wycats and the winner was to switch back to exec, but passing the current interpreter. If you need a different vm, or have a custom shebang that needs to be honored you can still run script/rails directly.
-
Xavier Noria
- No changes were found…
-
Sam Ruby
- Milestone cleared.
My two cents "rails command known not to work on Windows" should be considered a blocker for the next beta.
-
Repository
- State changed from new to committed
(from [bf0f14579aa793f2ab29ec092c517d04e702dbe3]) let the rails command recurse upwards looking for script/rails, and exec ruby on it for better portability [Xavier Noria] (Closes #4008 let rails use load to interpret script/rails) http://github.com/rails/rails/commit/bf0f14579aa793f2ab29ec092c517d...
