This docker container uses the Blender Cloud image, but a different entry point. It is not intended to be network-reachable from the outside world. All it needs are connections to the databases (mongo, redis, rabbit).
16 lines
336 B
Bash
Executable File
16 lines
336 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
source /install_scripts.sh
|
|
|
|
# Make sure that log rotation works.
|
|
mkdir -p ${APACHE_LOG_DIR}
|
|
service cron start
|
|
|
|
if [ "$DEV" = "true" ]; then
|
|
echo "Running in development mode"
|
|
cd /data/git/blender-cloud
|
|
exec bash /manage.sh runserver --host='0.0.0.0'
|
|
else
|
|
exec /usr/sbin/apache2ctl -D FOREGROUND
|
|
fi
|