-
Notifications
You must be signed in to change notification settings - Fork 0
Steps to deploy journal checker tool
Note: This page deploys to test environment
-
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
-
-
Run the API
-
Check the values in settings.py
-
Install packages, if needed
cd journalcheckertool/api meteor npm install
-
Open the screen session, if one is running
screen -ls screen -r 113456 # for example # or screen -d -r 113456 # if it is already attached
-
If meteor is not started, or it hasn't restarted, start it
cd journalcheckertool/api MONGO_URL="http://nowhere" && meteor --port 3002 --settings settings.json
-
Import journal data
-
Import the new funder configurations from funderdb
-
Import the new funder language files from funderdb
-
Run the importer
-
Run the tests
-
-
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
-