You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Samy Delahaye 5601bff4c9 fix error when profile properties is empty 10 months ago
Docker Refactor of folder for Docker integration 11 months ago
app fix error when profile properties is empty 10 months ago
.gitignore Initial commit 11 months ago
Dockerfile Refactor of folder for Docker integration 11 months ago
Pipfile Adding avatar to api provided from mojang api and cropped/merged with pillow 11 months ago
Pipfile.lock Adding avatar to api provided from mojang api and cropped/merged with pillow 11 months ago
README.md Initial commit 11 months ago

README.md

Charon

A basic flask app for aggregating objectives from minecraft servers per players and exposing it with a simple REST api.

Getting started

Create a python3's virtualenv with this command

pipenv --python 3

Install all requirements for this project

pipenv install

Create a systemd services (should be launch with the user that created the virtualenv)

[Unit]
Description=Charon Daemon
After=network.target


[Service]
User=myuser
Group=myuser
WorkingDirectory=/var/www/Charon/
ExecStart=/usr/bin/pipenv run gunicorn --timeout 3000 --workers 2 --bind 127.0.0.1:8000 app:app

[Install]
WantedBy=multi-user.target

And that's all folks!

Cron

A cron task exist for aggregating data, you should use it with this command:

/usr/bin/pipenv run flask update