Rails 5 console does not work when deploying with Capistrano

I use Rails 5, and I halfway deployed my application through Capistrano to the server. due to the specific need for loadschema, I ssh in and cd to the release / ### directory and tried to run

rails --version # released 5.0.3beta p>

package # works, everything is installed

rails c # but this crash

run rails db: migrate also failed.

It seems that rails generic help is returning since my directory is not a rails directory.

I tried to delete the bin folder, but still the same. Does anyone know what could be wrong?

enter image description here

Thank you

+4
source share
2 answers

, capistrano . : https://github.com/capistrano/bundler/issues/45

:

  • bin linked_dirs
  • set :bundle_binstubs, nil config/deploy.rb, binstubs
+9

, rails console. , rake db:migrate

+1

All Articles