0

Rails アプリを linode にセットアップしましたが、Web サイトは期待どおりに機能しています。コンソールで「ssh」した後、Rails コンソールにアクセスしようとしましたが、次のエラーが表示されます (アプリのメイン ディレクトリからコマンドを実行していることに注意してください)。

~/apps/my_app$ bundle exec rails c production - Could not locate Gemfile

~/apps/my_app$ RAILS_ENV=production rails console -bash: /usr/bin/rails: No such file or directory

~/apps/my_app$ RAILS_ENV=production bundle exec rails c - Could not locate Gemfile

Ruby 1.9.3 がインストールされており、gemfile には次のものがあります。gem 'rails', '3.2.9'

4

1 に答える 1