部署后,无法在EC2上运行命令栏控制台

时间:2015-03-30 14:39:16

标签: ruby-on-rails amazon-web-services amazon-ec2 elastic-beanstalk

我使用AWSElasticbeanstalk来部署我的应用程序,但是一旦ssh到我的服务器并转到rails console,我就无法运行命令/var/app/current

我尝试了很多命令,没有成功:

  • bundle exec rails c
  • RAILS_ENV=development rails c

我收到了以下错误:

Could not find addressable-2.3.6 in any of the sources
Run `bundle install` to install missing gems.

但是当跑bundle install时一切都很好。

这个错误对我来说是个大问题,因为我无法使用whenever cron作业。

你能帮助我吗?

PS:我的Gemfile here

的要点

1 个答案:

答案 0 :(得分:1)

遇到了类似的问题,这就解决了我的问题:

您可以从根目录尝试sudo gem install bundler,然后转到app/current并尝试运行rails c -e environment_name