Skip to content

Steps to deploy journal checker tool

Steven Eardley edited this page Jun 22, 2022 · 6 revisions

With no automated import of autocomplete data

Note: This page deploys to test environment

  1. Run an import using journalcheckertool's importer

    • Create a virtual environment ( (for the first time) and activate

      git clone https://github.com/CottageLabs/journalcheckertool.git
      python3 -m venv ~/jct
      source ~/jct/bin/activate
      
    • Install packages

      cd journalcheckertool/Importer
      pip install --upgrade -r requirements.txt	
      # pip install . 
      # not doing this anymore because importer needs to be run from the current location and not the venv
      
    • Modify the elasticsearch endpoint in jctdata/settings.py, if needed

    • Build the indexing data for journal and institution autocomplete

      python jctdata/jct.py
      
    • Index the journal autocomplete data

      python jctdata/index.py jac -s dev
      
    • Index the institution autocomplete data

      python jctdata/index.py iac -s dev
      
  2. Run the API

  3. Run the UI

    • Checkout code for the relevant branch for jct UI

    • Publish the pages

      cd journalcheckertool/ui
      hugo --environment staging 
      rm -r ./public/_sass 
      rm -r ./public/_includes
      
    • Restart nginx

      sudo systemctl restart nginx
      
    • Check the UI is working as expected

Clone this wiki locally