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

后端 未结 11 1108
一整个雨季
一整个雨季 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:24

    None of the other answers worked for me so I went looking - this is working for me now on an elastic beanstalk 64bit amazon linux 2016.03 V2.1.2 ruby 2.2 (puma) stack

    cd /var/app/current
    sudo su
    rake rails:update:bin
    bundle exec rails console
    

    that returns me the expected console

    Loading production environment (Rails 4.2.6)
    irb(main):001:0>
    

提交回复
热议问题