0

I'm using EC2 and trying to run basic ruby commands. I have Ruby and Rails installed. From gem list:

[root] gem list

*** LOCAL GEMS ***
rails (4.1.4)

[root]# rails generate controller common bash: rails: command not found

Any thoughts? Rails is in there, but why can't it find the rails command? (This is all on EC2)

1

1 Answer 1

0

You need to change to your app directory. Try this:

cd /var/app/current.

Then run your commands.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.