Can you run a rails console or rake command in the elastic beanstalk environment?

后端 未结 11 1106
一整个雨季
一整个雨季 2020-12-12 21:03

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 effective

11条回答
  •  星月不相逢
    2020-12-12 21:30

    None of these solutions mentioned here worked for me, so I cooked up a little script that I put in script/aws-console.

    You can run it from the /var/app/current directory as root:

    eb ssh
    cd /var/app/current
    sudo script/aws-console
    

    My script can be found as a Gist here.

提交回复
热议问题