Skip to content

Commands

Using Legacy Code

Core, Batch Quotes and Queue

All services run with the same command, but using a different set of settings in the configuration file.

Runing a service

sh -x /etc/init.d/lbnService start


Restart a service

pkill node
sh -x /etc/init.d/lbnService start


Display logs

tail -f /var/log/lbnservice.log

Using RabbitMQ

Core

Runing a service

sh -x /etc/init.d/lbnService start


Display logs

tail -f /var/log/lbnservice.log

Batch Quote

Runing a service

sh -x /etc/init.d/lbnBatchQuoteService start


Display logs

tail -f /var/log/lbnbatchquoteservice.log

Queue

Runing a service

sh -x /etc/init.d/lbnQueueService start 


Display logs

tail -f /var/log/lbnqueueservice.log

Using Analytics

Running a service (Dev)

uvicorn main:server --reload

Stopping a service (Dev)

pkill uvicorn

Running a service (Prod)

gunicorn -k uvicorn.workers.UvicornWorker main:server

Stopping a service (Prod)

pkill gunicorn

Running as a container (Docker)

sudo docker-compose -f "docker-compose.yml" up -d --build

Stopping a container (Docker)

sudo docker-compose -f "docker-compose.yml" down

Display logs

tail -f ./lbn_reports.log