您可以运行在弹性魔豆环境中轨控制台或耙命令? [英] Can you run a rails console or rake command in the elastic beanstalk environment?

查看:125
本文介绍了您可以运行在弹性魔豆环境中轨控制台或耙命令?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经设置了对AWS的弹性魔豆一个回报率environement。我能够ssh到我的EC2实例。 我的主目录是/ 家用/ EC2用户,这实际上是空的。 如果我移动了一个目录,还有一个 /主页/ web应用程序目录下,我不能够访问。

I have set up a RoR environement on AWS' elastic beanstalk. I am able to ssh into my EC2 instance. My home directory is /home/ec2-user, which is effectively empty. If I move up a directory, there is also a /home/webapp directory that i do not have access to.

有没有办法运行的命令,或轨控制台我的弹性魔豆的实例?

Is there a way to run a rake command or rails console on my elastic beanstalk instance?

如果我键入轨控制台我得到用法:轨道新APP_PATH [选项] 如果键入 RAILS_ENV =产品包的exec轨控制台,我得到无法找到的Gemfile

If I type rails console I get Usage: rails new APP_PATH [options] If I type RAILS_ENV=production bundle exec rails console, I get "Could not locate Gemfile"

推荐答案

有关轨道,跳转到的/ var /应用/电流那么作为@juanpastas说,执行 RAILS_ENV =产品包的exec轨ç

For rails, jump to /var/app/current then as @juanpastas said, run RAILS_ENV=production bundle exec rails c

这篇关于您可以运行在弹性魔豆环境中轨控制台或耙命令?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆