简体   繁体   English

无法在VPS上访问Rails Production Console

[英]Can't access Rails Production Console on VPS

I have setup my rails app on linode and the website is working as expected. 我在linode上设置了我的rails应用程序,网站正在按预期工作。 I tried to access the Rails Console after "ssh"ing in my console, but I am getting the following errors (note I am running the commands from my apps main directory): 我在我的控制台中“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

I have Ruby 1.9.3 installed and in my gemfile I have: gem 'rails', '3.2.9' 我安装了Ruby 1.9.3并且在我的gemfile中我有:gem'trail gem 'rails', '3.2.9'

The error says you are missing the Gemfile. 错误说您缺少Gemfile。 Ensure from the output of ls command (from where you are eg. ~/apps/my_app ) that Gemfile is here. 确保从ls命令的输出(例如~/apps/my_app ), Gemfile就在这里。 My guess is either you are not in the right directory, either the Gemfile has not been deployed to your repository. 我的猜测是要么你没有在正确的目录中,要么Gemfile尚未部署到你的存储库。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM