Running Rails console

Start by SSHing to your server. Then go to your STACK_PATH (eg. cd $STACK_PATH) and run the following command:

$ bundle exec rails c <environment>

Possible values for <environment>:

  • development (default)
  • test
  • production

To run your Rails console as the Nginx user, you can use the following command:

$ sudo -u nginx bash -c 'source /var/.cloud66_env && bundle exec rails c'

Still need help? Contact Us Contact Us