0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-24 07:29:08 -05:00
penpot/docker/backend/entrypoint.sh
mathieu.brunot 6d3232e70a 🐛 Fix DB URI generation
Signed-off-by: mathieu.brunot <mathieu.brunot@monogramm.io>
2020-01-07 10:38:11 +02:00

14 lines
478 B
Bash

#!/usr/bin/env bash
set -e
echo "Synchronize static data..."
rsync -avr --delete ./resources/public/static/ ./data/static/
if [ -z "$UXBOX_DATABASE_URI" ]; then
echo "Initializing database connection string..."
UXBOX_DATABASE_URI="\"postgresql://$(echo ${UXBOX_DATABASE_SERVER} | tr -d '"'):${UXBOX_DATABASE_PORT}/$(echo ${UXBOX_DATABASE_NAME} | tr -d '"')\""
echo "Database connection string: $UXBOX_DATABASE_URI"
fi
echo "Setting up UXBOX Backend..."
exec "$@"