|
10 months ago | |
---|---|---|
Docker | 11 months ago | |
app | 10 months ago | |
.gitignore | 11 months ago | |
Dockerfile | 11 months ago | |
Pipfile | 11 months ago | |
Pipfile.lock | 11 months ago | |
README.md | 11 months ago |
A basic flask app for aggregating objectives from minecraft servers per players and exposing it with a simple REST api.
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!
A cron task exist for aggregating data, you should use it with this command:
/usr/bin/pipenv run flask update