0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-23 06:58:58 -05:00
penpot/docker/backend/entrypoint.sh
mathieu.brunot 9c61389830 Init DB JDBC URI from base DB params
Signed-off-by: mathieu.brunot <mathieu.brunot@monogramm.io>
2019-07-19 17:48:13 +02:00

14 lines
483 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="\"jdbc: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 "$@"