File tree Expand file tree Collapse file tree 4 files changed +23
-7
lines changed Expand file tree Collapse file tree 4 files changed +23
-7
lines changed Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env ruby
2
+ load File . expand_path ( "spring" , __dir__ )
2
3
APP_PATH = File . expand_path ( '../config/application' , __dir__ )
3
- require_relative ' ../config/boot'
4
- require ' rails/commands'
4
+ require_relative " ../config/boot"
5
+ require " rails/commands"
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env ruby
2
- require_relative '../config/boot'
3
- require 'rake'
2
+ load File . expand_path ( "spring" , __dir__ )
3
+ require_relative "../config/boot"
4
+ require "rake"
4
5
Rake . application . run
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env ruby
2
- require ' fileutils'
2
+ require " fileutils"
3
3
4
4
# path to your application root.
5
5
APP_ROOT = File . expand_path ( '..' , __dir__ )
@@ -9,8 +9,8 @@ def system!(*args)
9
9
end
10
10
11
11
FileUtils . chdir APP_ROOT do
12
- # This script is a way to setup or update your development environment automatically.
13
- # This script is idempotent, so that you can run it at anytime and get an expectable outcome.
12
+ # This script is a way to set up or update your development environment automatically.
13
+ # This script is idempotent, so that you can run it at any time and get an expectable outcome.
14
14
# Add necessary setup steps to this file.
15
15
16
16
puts '== Installing dependencies =='
Original file line number Diff line number Diff line change
1
+ #!/usr/bin/env ruby
2
+ if !defined? ( Spring ) && [ nil , "development" , "test" ] . include? ( ENV [ "RAILS_ENV" ] )
3
+ gem "bundler"
4
+ require "bundler"
5
+
6
+ # Load Spring without loading other gems in the Gemfile, for speed.
7
+ Bundler . locked_gems &.specs &.find { |spec | spec . name == "spring" } &.tap do |spring |
8
+ Gem . use_paths Gem . dir , Bundler . bundle_path . to_s , *Gem . path
9
+ gem "spring" , spring . version
10
+ require "spring/binstub"
11
+ rescue Gem ::LoadError
12
+ # Ignore when Spring is not installed.
13
+ end
14
+ end
You can’t perform that action at this time.
0 commit comments