【发布时间】:2015-06-03 15:22:36
【问题描述】:
我使用 AWS 和 Elasticbeanstalk 来部署我的应用程序,但是一旦 ssh 到我的服务器并转到 /var/app/current,我就无法运行命令 rails console。
我尝试了很多命令,但没有成功:
bundle exec rails cRAILS_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
【问题讨论】:
-
您的 EC2 使用的是系统 ruby 还是 RVM 之类的东西?
-
我的 EC2 实例正在运行 Ruby。我不确定 RVM(找不到命令)。
-
你试过
bundle exec rails c production吗? -
是的,我收到了
Could not find addressable-2.3.6 in any of the sources Run bundle install to install missing gems. -
您能否添加您的
Gemfile和Gemfile.lock以及gem list addressable的输出?
标签: ruby-on-rails amazon-web-services amazon-ec2 amazon-elastic-beanstalk