ruby on rails - Bundler::Git error on app startup (passenger 4, nginx flavor, and jruby 1.7.3 for the app under rvm) -
there many similar questions, rather dated. error familiar, updated passenger 4.0.0.2 , jruby 1.7.3.
the web application cannot started, , in stack trace is
the git source not yet checked out. please run
bundle install
before trying start
application (bundler::giterror)
i have tried couple things suggested other posts, such bundle install --development
have tried suggestions per rvm passenger instructions no avail.
another curious thing, cannot run passenger-status under jruby gemset, , error, gem::loaderror: not find passenger (>= 0)
double-checked , made sure passenger installed under gemset.
my nginx config pointing proper ruby wrappers, not source of error. still have hunch due different gemsets, having use mri ruby passenger installation (per recommendation phusion team), can't seem pinpoint source of error.
any appreciated.
edit upon closer inspection of environment variables, gem_path being left blank edit 2 installed passenger gem, , did bundle install --deployment under global gemset jruby , getting gem load errors
you have activated rack 1.5.2, gemfile requires rack 1.4.5. using bundle
exec may solve this. (gem::loaderror)
the problem due variety of things, boiled down to, environment variables not getting set.
since rvm moving away .rvmrc .ruby-version, have solution automatically set project-specific virtual environment variables, , that, found autoenv
i hope helps others.
Comments
Post a Comment