diff options
| author | Luc Donnet | 2015-02-20 15:33:05 +0100 |
|---|---|---|
| committer | Luc Donnet | 2015-02-20 15:33:05 +0100 |
| commit | 35bf9fa59c5486905f642f32fe741f7fcbdb9101 (patch) | |
| tree | dfc06d91e5fe3742ce4c5ebdcea362d7d76bb6ea /bin | |
| parent | ad74d12ada2bbe2fe961424a3ce529f28cc157da (diff) | |
| download | chouette-core-35bf9fa59c5486905f642f32fe741f7fcbdb9101.tar.bz2 | |
Update config in a true Rails 4 way
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/bundle | 3 | ||||
| -rwxr-xr-x | bin/rails | 6 | ||||
| -rwxr-xr-x | bin/rake | 5 |
3 files changed, 8 insertions, 6 deletions
diff --git a/bin/bundle b/bin/bundle new file mode 100755 index 000000000..66e9889e8 --- /dev/null +++ b/bin/bundle @@ -0,0 +1,3 @@ +#!/usr/bin/env ruby +ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) +load Gem.bin_path('bundler', 'bundle') @@ -1,10 +1,8 @@ -#!/usr/bin/env jruby +#!/usr/bin/env ruby begin load File.expand_path("../spring", __FILE__) rescue LoadError end -# This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application. - APP_PATH = File.expand_path('../../config/application', __FILE__) -require File.expand_path('../../config/boot', __FILE__) +require_relative '../config/boot' require 'rails/commands' @@ -3,5 +3,6 @@ begin load File.expand_path("../spring", __FILE__) rescue LoadError end -require 'bundler/setup' -load Gem.bin_path('rake', 'rake') +require_relative '../config/boot' +require 'rake' +Rake.application.run |
