Ruby on Rails Wednesday, June 29, 2016

You have to check the scope of the gems you are using, since you are using bundle exec, bundler will only load the gems you have not specified in the given environment, in this case staging, so if you have something like this

group :test, :development, :staging do

gems in that group only load in the specific environment, so if you have a something like this

group :test, :development do
  gem 'foo'

Foo will not load in staging environment. 

Another thing is that is you are using capistrano/bundler, gems are not in stalled in the system or $GEMHOME, they are in shared/bundle/ruby/RUBY_VERSION/gems, so they might not show up when you do gems list outside the current folder. Pay attention to your capistrano recipe.rb so check how you are loading the application.

Please provide more details about your Gemfile, and your capistrano recipe.rb to be able to help you more.

On Wed, Jun 29, 2016 at 12:18 PM, tom <tomabroad@gmail.com> wrote:
hi,

im trying to deploy an app via cap3/bundler/rvm on debian , user-rvm

i go the app-code on the server, but when i test it via:
 bundle exec rails s -b 0.0.0.0 -p 3000 -e staging

it throws an error that a method is missing. 

gem list shows all gems , i have tried to install gems via bundle install ( --system & path vendor/plugins)

where is my problem??? what should i do?


thx for any pointers

ps the app runs just fine locally


--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CADQqhMdSb2peZ2fZ07qV868msmSKOVZ551v-kGcoWt8ciwtKbQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CANkJ5g%3DCxCJV1%2BqJa%3D-g4BvCqMVN5WtsAo6RjJbuTy%3DrN8rG3A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment