Servers

Running the Rails Console

Start by SSHing to your server. Then go to your STACK_PATH (e.g. 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'
Previous
Adding memcached