aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorRobert2017-06-26 12:41:57 +0200
committerRobert2017-06-26 12:41:57 +0200
commit6c10034434d5855dfb1e6c5165880b4df0bcf1b4 (patch)
tree9e94809b06303da33459126c78f88121700ffb1f /bin
parentb059fe0ecaf76b9ae211e927a42c1bed3fcfa8bb (diff)
downloadchouette-core-6c10034434d5855dfb1e6c5165880b4df0bcf1b4.tar.bz2
spring stubs created (spring stop needed); Fixes: #3874@1h
Diffstat (limited to 'bin')
-rwxr-xr-xbin/rails5
-rwxr-xr-xbin/rake5
2 files changed, 6 insertions, 4 deletions
diff --git a/bin/rails b/bin/rails
index 7feb6a30e..f2b0313dd 100755
--- a/bin/rails
+++ b/bin/rails
@@ -1,7 +1,8 @@
#!/usr/bin/env ruby
begin
- load File.expand_path("../spring", __FILE__)
-rescue LoadError
+ load File.expand_path('../spring', __FILE__)
+rescue LoadError => e
+ raise unless e.message.include?('spring')
end
APP_PATH = File.expand_path('../../config/application', __FILE__)
require_relative '../config/boot'
diff --git a/bin/rake b/bin/rake
index 8017a0271..d87d5f578 100755
--- a/bin/rake
+++ b/bin/rake
@@ -1,7 +1,8 @@
#!/usr/bin/env ruby
begin
- load File.expand_path("../spring", __FILE__)
-rescue LoadError
+ load File.expand_path('../spring', __FILE__)
+rescue LoadError => e
+ raise unless e.message.include?('spring')
end
require_relative '../config/boot'
require 'rake'