Hi Radhames,
running webrick (3000) on the server is fine, app loads.
doing bundle show rails gives:
/home/railsuser/.rvm/gems/ruby-2.3.1@my_gemset/gems/rails-4.1.6
but when i run nginx with staging or production gives me the same error
(method not found aka ( i guess) gems not loaded)
so question is how do i tell rvm // bundler / passenger where my gems
are?
ps: gem file
i took all the stages out and listed the gems only
recipe:
require ‘capistrano/rvm’
require “whenever/capistrano”
#require “bundler/capistrano”
#require “rvm/capistrano” # Load RVM’s capistrano plugin. OLD
set :stages, [“staging”, “production”]
set :default_stage, “staging”
set :rbenv_ruby, ‘2.2.4’
set :rvm_type, :user #system #; user ; system = rvm system wide install
set :application, ‘appname’
set :bundle_binstubs, nil
set :scm, :git
set :repo_url, “railsuser@SOMEIP:/gitrepos/my_repo.git”
set :ssh_options, {:forward_agent => true}
set :keep_releases, 5
set :linked_dirs, %w{log tmp/pids tmp/cache tmp/sockets vendor/bundle
public/system}
SSHKit.config.command_map[:rake] = “bundle exec rake” #8
SSHKit.config.command_map[:rails] = “bundle exec rails”
set :pty, true
set :format, :pretty
set :tmp_dir, “/home/username/tmp”
#set the user on our server that we want Capistrano to run commands
with:
set :user, “username”
thx