Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in AWS by (12.9k points)

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?

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"

1 Answer

0 votes
by (18.2k points)

Following is what you can do:

1. Go to /var/app current using the following command:

cd /var/app current

run the following commands:

sudo su

bundle exec rails c production

Related questions

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...