Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Create a new user in production

First, an administrator, from a local dev environment, should run the following:

cd /path/to/my/dev/chf-sufia
bundle exec cap production invoke:rake TASK=chf:user:create['username@sciencehistory.org']

Then, send the new user the following instructions. ("You" refers to the new user of course.)

*After new account has been created, file Help Desk ticket to add new user to Hydra User Group email list*

Lock out user

Likewise, from a local dev environment, run the following:

cap production invoke:rake TASK=chf:lock_out['username@sciencehistory.org']

Passenger (web worker) administration

Log into the web server as digcol user. You can find current web server IPs with ./bin/cap production list_ec2_servers from an app checkout. 

Get good status info on passenger workers:

sudo PASSENGER_INSTANCE_REGISTRY_DIR=/opt/scihist_digicoll/shared passenger-status

Restart application without restarting apache

This will reload config files.

$ PASSENGER_INSTANCE_REGISTRY_DIR=/opt/scihist_digicoll/shared passenger-status passenger-config restart-app

passenger-config can do some other interesting things as well, such as system-metrics

Resque admin panel

If a file doesn't get characterized correctly the first thing to do is check the resque admin panel. There you can view failures and restart jobs. If you are logged in as an admin user you can view the admin panel at `digital.chemheritage.org/admin/queues`

Restart application without restarting apache

This will reload config files.

$ passenger-config restart-app

What version of the app is deployed?

...