From a96c3d9cddde8f5b1029fda9bb89f64adf042372 Mon Sep 17 00:00:00 2001 From: Christina Chortaria Date: Wed, 23 Oct 2024 18:24:39 -0400 Subject: [PATCH] Update indexing.md Latest changes in orangetheses, set the RAILS_ENV that points to a dspace domain accordingly. Even though the RAILS_ENV in bibdata production is production . It is a good practice to set it when we run the rake task. For example when testing theses in bidbata-staging we should still run the theses rake task with RAILS_ENV=production so that it will retrieve theses from the production dspace and not the staging one. --- docs/indexing.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/indexing.md b/docs/indexing.md index b644a99d..d33b735d 100644 --- a/docs/indexing.md +++ b/docs/indexing.md @@ -118,7 +118,7 @@ as deploy user, in `/opt/bibdata/current` $ tmux attach-session -t full-index $ cd /opt/bibdata/current $ mv /home/deploy/theses.json /home/deploy/theses-.json -$ FILEPATH=/home/deploy/theses.json bundle exec rake orangetheses:cache_theses +$ FILEPATH=/home/deploy/theses.json RAILS_ENV=production bundle exec rake orangetheses:cache_theses CTRL+b d (to detach from tmux) ```