API Rake Tasks
The Manifold API application is a Rails application and, as such, it includes a number of Rake tasks. In a packge environment, you run these tasks with manifold-api task_name
. If Manifold has been deployed from source, you can run Rake tasks with rake task_name
or rails task_name
from the API directory. In addition to standard Rails rake tasks and command line interfaces, Manifold includes a number of custom tasks:
rake manifold:attachments:replace
rake manifold:cache:prime
rake manifold:development:seed
rake manifold:import:projects
rake manifold:import:texts
rake manifold:job:queue_fetch_all_tweets
rake manifold:project:fetch_tweets
rake manifold:project:import
rake manifold:project:import:drive:resources
rake manifold:project:ingest
rake manifold:search:reindex
rake manifold:search:reindex:annotations
rake manifold:search:reindex:events
rake manifold:search:reindex:makers
rake manifold:search:reindex:projects
rake manifold:search:reindex:resource_collections
rake manifold:search:reindex:resources
rake manifold:search:reindex:subjects
rake manifold:search:reindex:tags
rake manifold:search:reindex:text_sections
rake manifold:search:reindex:texts
rake manifold:search:reindex:users
rake manifold:settings:abort_without_google_service_key
rake manifold:settings:update_from_env
rake manifold:thumbnails:regenerate
rake manifold:thumbnails:regenerate:maker
rake manifold:thumbnails:regenerate:project
rake manifold:thumbnails:regenerate:resource
rake manifold:thumbnails:regenerate:resourcecollection
rake manifold:thumbnails:regenerate:user
rake manifold:upgrade
rake manifold:user:create
rake manifold:user:create:admin
rake rate_limiting:all:disable # Disable rate-limiters globally
rake rate_limiting:all:enable # Enable all rate-limiters, clearing any specific category disable states
rake rate_limiting:comment_creation:disable # Disable rate-limiting for comment creation
rake rate_limiting:comment_creation:enable # Enable rate-limiting for comment creation
rake rate_limiting:public_annotation_creation:disable # Disable rate-limiting for public annotation creation
rake rate_limiting:public_annotation_creation:enable # Enable rate-limiting for public annotation creation
rake rate_limiting:public_reading_group_creation:disable # Disable rate-limiting for public reading group creation
rake rate_limiting:public_reading_group_creation:enable # Enable rate-limiting for public reading group creation
rake rate_limiting:registration:disable # Disable rate-limiting for registration
rake rate_limiting:registration:enable # Enable rate-limiting for registration
rake rate_limiting:reset # Reset the cache and all counters for rate limiting
rake rate_limiting:status # Print the status of rate-limiting settings
These tasks are mainly used for debugging purposes and maintenance tasks. However, they can also be helpful for automating some tasks on a Manifold instance.