简体   繁体   English

部署后无法在EC2上运行Command Rails控制台

[英]Can't run command rails console on EC2 after deploy

I use AWS with Elasticbeanstalk to deploy my applications, but I can't run the command rails console once ssh to my server and going to /var/app/current . 我将AWSElasticbeanstalk一起使用来部署我的应用程序,但是一旦ssh到服务器并转到/var/app/current ,就无法运行命令rails console

I tried many commands, without success : 我尝试了许多命令,但均未成功:

  • bundle exec rails c
  • RAILS_ENV=development rails c

I got the follow error: 我收到以下错误:

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

But when running bundle install everything is fine. 但是,在运行bundle install一切都很好。

This error is a huge issue to me as I can't use the whenever cron job. 这个错误对我来说是个大问题,因为我无法使用whenever cron作业。

Can you help me ? 你能帮助我吗 ?

PS : Gist of my Gemfile here PS: 这里是我的Gemfile的要点

ran into similar problem and this is what solved my problem: 遇到类似的问题,这就是解决我的问题的原因:

you may try sudo gem install bundler from your root and later move to app/current and try run rails c -e environment_name 您可以从根目录尝试sudo gem install bundler ,然后移至app/current并尝试运行rails c -e environment_name

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

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