Skip to content

Commit

Permalink
Update indexing.md
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
christinach authored Oct 23, 2024
1 parent da74bc7 commit a96c3d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/indexing.md
Original file line number Diff line number Diff line change
Expand Up @@ -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-<date>.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)
```

Expand Down

0 comments on commit a96c3d9

Please sign in to comment.