Skip to content

Instantly share code, notes, and snippets.

@sankalpk
Last active August 29, 2015 14:00
Show Gist options
  • Save sankalpk/11372607 to your computer and use it in GitHub Desktop.
Save sankalpk/11372607 to your computer and use it in GitHub Desktop.
How to open rails console in OpenShift from the terminal/command line

First SSH into your application

rhc ssh <app name>

Once into OpenShift, go to your repo directory and open Rails console

cd app-root/repo
bundle exec rails console production

Note that this last command takes a while for OpenShift to load. But you should be in after some time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment