73
edits
(Add details about activating the paster virtual env and managing background workers) |
(Fix instructions for changing number of background workers) |
||
Line 28: | Line 28: | ||
* To restart the Express Loader: <code>> sudo supervisorctl restart ckan-worker:*</code> | * To restart the Express Loader: <code>> sudo supervisorctl restart ckan-worker:*</code> | ||
* To edit the background worker configuration (including increasing the number of background workers), | * To edit the background worker configuration (including increasing the number of background workers), | ||
<code>> vi /etc/supervisor/conf.d/supervisor-ckan-worker.conf</code> | *# Edit the config file: <code>> vi /etc/supervisor/conf.d/supervisor-ckan-worker.conf</code> | ||
*# Tell Supervisor to use the new configuration: <code>> sudo supervisorctl reread</code> | |||
<code>> sudo supervisorctl | *# Update the deployed configuration to start the desired number of workers: <code>> sudo supervisorctl update</code> | ||
* Activate the virtual environment that lets you run <code>paster</code> commands: <code>> . /usr/lib/ckan/default/bin/activate</code> | * Activate the virtual environment that lets you run <code>paster</code> commands: <code>> . /usr/lib/ckan/default/bin/activate</code> |