aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib
diff options
context:
space:
mode:
authorbogdanvlviv <bogdanvlviv@gmail.com>2018-08-11 18:51:10 +0300
committerbogdanvlviv <bogdanvlviv@gmail.com>2018-08-11 18:58:20 +0300
commit2c667814c8ea47a5e73b60a2bd846bd31fef3a32 (patch)
tree0572ce0edcc72b42a2f5933423c97f4ad6bf1da6 /railties/lib
parent09e1452eeba395ce475b087070273e4765dc2fd4 (diff)
downloadrails-2c667814c8ea47a5e73b60a2bd846bd31fef3a32.tar.gz
rails-2c667814c8ea47a5e73b60a2bd846bd31fef3a32.tar.bz2
rails-2c667814c8ea47a5e73b60a2bd846bd31fef3a32.zip
`bundle binstubs bundler` should be executed after `bundle install`
Fixes: `bundle binstubs bundler` doesn't generate `bin/bundle` for newly generated Rails app. ``` ... (snip) run bundle binstubs bundler The git source https://github.com/rails/web-console.git is not yet checked out. Please run `bundle install` before trying to start your application run bundle install Fetching https://github.com/rails/web-console.git (snip) ... ``` Related to #33202
Diffstat (limited to 'railties/lib')
-rw-r--r--railties/lib/rails/generators/rails/app/app_generator.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/railties/lib/rails/generators/rails/app/app_generator.rb b/railties/lib/rails/generators/rails/app/app_generator.rb
index dd6ec127dc..a6d160f1eb 100644
--- a/railties/lib/rails/generators/rails/app/app_generator.rb
+++ b/railties/lib/rails/generators/rails/app/app_generator.rb
@@ -298,8 +298,6 @@ module Rails
build(:bin)
end
- public_task :generate_bundler_binstub
-
def update_bin_files
build(:bin_when_updating)
end
@@ -471,7 +469,8 @@ module Rails
end
public_task :apply_rails_template, :run_bundle
- public_task :run_webpack, :generate_spring_binstubs
+ public_task :generate_bundler_binstub, :generate_spring_binstubs
+ public_task :run_webpack
def run_after_bundle_callbacks
@after_bundle_callbacks.each(&:call)