Skip to content

Latest commit

 

History

History
45 lines (29 loc) · 735 Bytes

DEVELOPMENT.md

File metadata and controls

45 lines (29 loc) · 735 Bytes

libc-database web service development

Local deployment

  1. Populate libc db with ./get or ./add.

  2. Start the server with docker (must be run from the searchengine/ directory):

    docker-compose up --build
  3. Install pip dependencies from requirements.txt.

    Example with venv:

    python -m venv venv
    . venv/bin/activate
    pip install -U pip
    pip install -U -r requirements.txt
  4. Index libc db in elasticsearch (must be run from the searchengine/ directory):

    python -m index ../db

Cleaning up

To remove all development files run:

docker-compose down --volumes --rmi all

UWSGI logging

To get app logs from UWSGI:

docker logs searchengine_uwsgi_1