mirror of
https://github.com/baserow/baserow.git
synced 2026-12-06 09:18:47 +00:00
19 lines
501 B
Bash
Executable File
19 lines
501 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -eu
|
|
|
|
if [[ ! -f /app/data/.secret ]]; then
|
|
echo "export SECRET_KEY=$(tr -dc 'a-z0-9' < /dev/urandom | head -c50)" > /app/data/.secret
|
|
fi
|
|
source /app/data/.secret
|
|
|
|
mkdir -p /app/data/redis
|
|
|
|
echo "==> Executing database migrations"
|
|
/app/code/env/bin/python /app/code/baserow/backend/src/baserow/manage.py migrate --settings=cloudron.settings
|
|
|
|
chown -R cloudron:cloudron /app/data
|
|
|
|
echo "==> Starting"
|
|
exec /usr/bin/supervisord --configuration /etc/supervisor/conf.d/supervisor.conf
|