Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Repository files navigation

Deployment instructions

Requirements

Step 1 - Download repository

Download the repository (we will put it on ~/log-processor folder)

git clone https://gitlab.com/coronavirus-outbreak-control/log-processor ~/log-processor

Step 2 - Config.py

Edit following constants in /config.py file:

SQS_QUE_URL_COVAPP = 'XXXXXXXXX'
BUCKET_S3_NAME = 'XXXXXXXXX'
BUCKET_S3_COPY_NAME = 'XXXXXXXXX'
BASE_DIR = 'XXXXXXXXX'

Replace the XXXXXXXXX with your values.

Step 3 - Setup service

Get the current user, type # whoami

Open consumer-covapp.service and edit the user value with the name of the current user.

In order to set consumer-covapp.service as systemctl service, create a symlink of our service

sudo ln -s ~/log-processor/consumer-covapp.service /etc/systemd/system/consumer-covapp.service

Go in the system directory

cd /etc/systemd/system/

Start the service:

systemctl start consumer-covapp.service

And automatically get it to start at boot:

systmctl enable consumer-covapp.service

To test the system, simply type:

systemctl status consumer-covapp.service

The output should be something like:

● consumer-covapp.service - Consumer Covid App.
   Loaded: loaded
   Active: active (running)

That's it.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages