You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Luca 2e05a51928 | 4 months ago | |
---|---|---|
.idea | 1 year ago | |
scripts | 5 months ago | |
shiftregister | 4 months ago | |
storage | 2 years ago | |
.dockerignore | 5 months ago | |
.drone.yml | 5 months ago | |
.editorconfig | 5 months ago | |
.env.example | 5 months ago | |
.gitignore | 5 months ago | |
Dockerfile | 5 months ago | |
Dockerfile-dev | 5 months ago | |
LICENSE | 2 years ago | |
README.md | 5 months ago | |
docker-compose.yml | 1 year ago | |
entrypoint.sh | 2 years ago | |
manage.py | 2 years ago | |
requirements.txt | 5 months ago | |
setup.cfg | 5 months ago |
README.md
shiftregister
CI Mirror / Drone CI
project setup
- make sure python 3.12 is installed
- (TODO: why?) install
python-psycopg2
system wide python -m venv env
. env/bin/activate
pip install -r requirements.txt
cp .env.example .env
sed -i '/^ENVIRONMENT=/c ENVIRONMENT=development' .env
./manage.py migrate
./manage.py createsuperuser
./manage.py runserver
- start message queue with
docker compose up -d broker result-backend
- start runner with
celery -A shiftregister worker -B -l INFO
- add calendars at http://127.0.0.1:8000/admin/importer/calendar/add/
- change event state to 'event is running' at http://127.0.0.1:8000/admin/dynamic_preferences/globalpreferencemodel/3/change/