FreedomBen / canvas-development-tools

Some handy scripts that I use to make life better while working on Canvas by Instructure
GNU Affero General Public License v3.0
36 stars 29 forks source link

undefined local variable or method in CODES.sh #18

Open brandondrew opened 7 years ago

brandondrew commented 7 years ago

An error is displayed when running CODES.sh.

This can be done by adding these lines to '/Users/brandon/.bash_profile':

# Added by canvas-lms setup-development script
# This adds the gem bin to your PATH
if ! $(echo $PATH | grep "$(gem env 'GEM_PATHS' | sed -e 's|:|/bin:|g')/bin" >/dev/null 2>&1); then
    export PATH="$PATH:$(gem env 'GEM_PATHS' | sed -e 's|:|/bin:|g')/bin"
fi

Do this now? ([Y]/N): n
-e:1:in `<main>': undefined local variable or method `req_bundler_version_ceiling' for main:Object (NameError)
Bundler is installed
Bundler is installed
Installing bundler gems with bundle install (but no mysql)
Making sure the gem location is in PATH