Generating API keys for Citadel

Only people with access to the backend of the website can do this. If Rails console is not working, check to make sure user is in the RVM group (should only apply to new users).

  1. SSH into ozfortress.com
  2. Navigate to the production directory: cd /opt/citadel/current
  3. Open the Rails console: RAILS_ENV=production bundle exec rails c
  4. Select the user: u=User.find 4030 use user ID from profile URL.
  5. Create the API key for the user: APIKey.create!(user:u).
  6. Full API key is there in the output, and so is an incomplete one (below it). Send the top most one to the user.