Name: focusgrouplogs-frontend
Owner: CCP Games
Description: Python Flask frontend powering https://focusgrouplogs.tech.ccp.is/
Created: 2016-01-26 15:16:28.0
Updated: 2018-05-08 18:02:41.0
Pushed: 2018-05-08 18:02:40.0
Homepage: null
Size: 33
Language: Python
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
docker build -t focusgrouplogs .
er run -d --name=focusgrouplogs \
CLOUD_DATASET_ID="your-google-project-ID" \
OOGLE_APPLICATION_CREDENTIALS="/path/to/your/credentials.json" \
data/focusgrouplogs:/data \
080:8080 \
sgrouplogs
Setting the FOCUSGROUPLOGS_REDIS
env var to “1” will enable redis caching.
By default it will use “redis:6379/0” for a host and database. Use the
FOCUSGROUPLOGS_REDIS_URL
env var to change that to suit your needs.
If you want to use redis caching in dev, run the following before your start your frontend container
er run -d --name=focusgrouplogs-redis \
379:6379 \
s:latest
Also be sure to add --link=focusgrouplogs-redis:redis
to your run args for
the frontend container.
To debug this container for local dev work, add the command
/venv/bin/python /app/focusgrouplogs/web.py
to your docker run command. This
will run flask in debug, you can find the PIN via docker logs focusgrouplogs
.
Need to come up with a better way to show all logs from a group. Probably do some fancy infinite loading page, make a JSON response for the group/date routes.
See something off? Something that can be improved? Fork and send a pull request!