Main Screen | Settings Screen |
---|---|
- Create DB directory
- See below
docker-compose run alwaysontime pipenv run python manage.py migrate
docker-compose run alwaysontime pipenv run python manage.py createsuperuser
- Setup All-Auth
- See below
Using SQLite 3
sudo mkdir -p /var/lib/com.floriankempenich/alwaysontime/database
sudo chown -R floriankempenich:staff /var/lib/com.floriankempenich
ln -s /var/lib/com.floriankempenich/alwaysontime/database ./alwaysontime/database
- DB Stored at
/var/lib/com.floriankempenich/alwaysontime/database/db.sqlite3
- App expects it at
./database/db.sqlite3
- Docker: Mount as a volume =>
$DB_DIR_HOST:/alwaysontime/database
DB_DIR_HOST
is where the db can be found on the host
- Set locally in
.env
to$HOME/.databases/alwaysontime
- Set on pipeline in
.env
to$HOME/.databases/alwaysontime
alwaysontime
is the working directory in docker. It contains:
- Everything in the local
alwaysontime
folderPipfile
&Pipfile.lock
from the root of the project- Locally: Symlink (created above)
- Download credentials
- In http://localhost:8100/admin/
- In
Sites
- Make sure there is a Site
- Get the
ID
of the Site1
if only element in table
- In
Social Application
- Configure Google
Provider
:Google
Important: That name is used in the app and configured in the settings. Make sure to write exactly as it isName
: WhateverClient id
: CalledClient ID
by GoogleSecret key
: CalledClient secret
by GoogleKey
: Not needed, leave blank- Add
Site
toChosen sites
- Configure Google
- In
For more info: https://django-allauth.readthedocs.io/en/latest/providers.html#google