One of our Rails programmers keeps messing up our bin
directory. He'll run bundle install
and for some reason the bin
directory fills up with scripts for almost all of our gems and the 5 scripts we normally have there (bundle
, rails
, rake
, setup
, spring
) get overridden. We then try and do something like heroku run console
and get a bunch of warning messages about bad bin
files. But everything seems to work anyway.
Here's an example rails
file that gets overridden:
#!/usr/bin/env ruby
#
# This file was generated by Bundler.
#
# The application 'rails' is installed as part of a gem, and
# this file is here to facilitate running it.
#
require 'pathname'
ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
Pathname.new(__FILE__).realpath)
require 'rubygems'
require 'bundler/setup'
load Gem.bin_path('railties', 'rails')
any idea what's going on and how to stop this?