African Poetry In the News Data Posting
In the News is NOT a typical Orchid site. Though it does rely on the API for some of its contents, it also uses a database which is built by an "admin" interface.
To update African Poetry in the News site, you must run scripts from the Admin rails application.
NOTE: You will need to use separate instructions if updating the Contemporary African Poets section of the site.
The admin site
Note, these instructions vary only slightly from development to production, so you will simply need to run them from each location in turn.
The "In the News" section of the African Poetry site relies on a database curated through an "admin" interface, aka: https://africanpoetics.unl.edu/admin.
Changes made through the admin portal will not automatically be available to the frontend website so as to allow the researchers to work without immediately making changes public. To publish, log into the server.
cd /var/local/www/rails/african_poetics_admin
# migrate the database just in case
rails db:migrateIf you have not done this for a while or are setting this up on a new machine, check the configuration file at lib/tasks/config.sh or create it and fill it out with:
DB_FROM="admin_db_name"
DB_TO="frontend_db_name"
USER="user_for_both"
PSWD="user_password"If everything looks good, go ahead and publish it!
rails african_poetics:publishThe publish command above should not only dump the admin db and load it into the frontend db, but will also iterate through the database records and populate Elasticsearch / API with the information.
To run either the database dump / load or the API population separately, use these commands:
rails african_poetics:publish_db
rails african_poetics:publish_esYou may find more information about available rake tasks at https://github.com/CDRH/african_poetics_admin.