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 ff7282ea3b | 8 months ago | |
---|---|---|
.idea | 2 years ago | |
shiftregister | 8 months ago | |
storage | 3 years ago | |
.dockerignore | 8 months ago | |
.drone.yml | 8 months ago | |
.editorconfig | 8 months ago | |
.env.example | 8 months ago | |
.gitignore | 8 months ago | |
Dockerfile | 8 months ago | |
Dockerfile-dev | 8 months ago | |
LICENSE | 3 years ago | |
README.md | 8 months ago | |
docker-compose.yml | 2 years ago | |
entrypoint.sh | 3 years ago | |
manage.py | 3 years ago | |
requirements.txt | 8 months ago | |
setup.cfg | 8 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/