[英]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
. 我将
AWS
与Elasticbeanstalk
一起使用来部署我的应用程序,但是一旦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 ? 你能帮助我吗 ?
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.