Files
mediacms/deploy/docker/start.sh
T

18 lines
458 B
Bash
Raw Normal View History

2021-01-12 18:21:53 +00:00
#! /usr/bin/env sh
set -e
# If there's a prestart.sh script in the /app directory, run it before starting
PRE_START_PATH=deploy/docker/prestart.sh
echo "Checking for script in $PRE_START_PATH"
if [ -f $PRE_START_PATH ] ; then
echo "Running script $PRE_START_PATH"
. $PRE_START_PATH
else
echo "There is no script $PRE_START_PATH"
fi
# Start Supervisor, with Nginx and uWSGI
echo "Starting server using supervisord..."
2021-01-29 18:38:35 +00:00
exec /usr/bin/supervisord