8049bfa91e
- Cleans up log messages in the client - Refactored the autoupdate bundle code into an own file - Added bulk creates for History in Postgresql. This is the only database system that supports returning all ids whan multiple elements are inserted. We can make usage out of it. - Added a `disable_history`, that is request-wide - Disabled history on poll vote requests - Removed unnecessary user ordering - Reduced the queries for creating motion vote objects by one - removed final_data: This was not prefetched. Using the normal data collection the data is prefetched - removed unnecessary user query if vore delegation is not used
20 lines
337 B
Bash
Executable File
20 lines
337 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
wait-for-it -t 0 redis:6379
|
|
|
|
until pg_isready -h postgres -p 5432 -U openslides; do
|
|
echo "Waiting for Postgres to become available..."
|
|
sleep 3
|
|
done
|
|
|
|
if [[ ! -f "/app/personal_data/var/settings.py" ]]; then
|
|
echo "Create settings"
|
|
python manage.py createsettings
|
|
fi
|
|
|
|
python -u manage.py migrate
|
|
|
|
exec "$@"
|