Skip to content

Instantly share code, notes, and snippets.

@miry
Created January 23, 2014 12:20
Show Gist options
  • Save miry/8577681 to your computer and use it in GitHub Desktop.
Save miry/8577681 to your computer and use it in GitHub Desktop.
Run remote Rails console
ssh example.com "cd /data/apps/example/current && ( RAILS_ENV=production RBENV_ROOT=/data/rbenv RBENV_VERSION=2.0.0-p247 /data/rbenv/bin/rbenv exec bundle exec rails console)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment