Jass-Bot für das Modul DL4G (einem Entlebucher Grossmeister im Jassen nachempfunden)
Run locally:
$ cd app
$ gunicorn -b 0.0.0.0:5000 main:app
Build using a Docker container:
$ username="[EnterpriseLab User Name]" password="[EnterpriseLab Password]" ./build.sh
The two environment variables username
and password
(GitLab credentials) are used as build arguments.
Run the Docker container:
$ ./run.sh
Test the application:
$ curl localhost:5000/canary
Publish to Heroku:
$ heroku login
$ username="[EnterpriseLab User Name]" password="[EnterpriseLab Password]" ./deploy.sh
- Create a new Tournament on the Jass Server
- Register players with their
PLAYER_NAME
as defined inmain.py
(app.add_player(PLAYER_NAME, ...)
). The URL must be of the formhttp://kurtoid.herokuapp.com/PLAYER_NAME
- Start the Tournament
- Check the logs using
heroku logs -a kurtoid --tail