start.sh 404 B

123456789101112131415
  1. #! /usr/bin/env sh
  2. set -e
  3. # If there's a prestart.sh script in the /app directory, run it before starting
  4. PRE_START_PATH=/app/prestart.sh
  5. echo "Checking for script in $PRE_START_PATH"
  6. if [ -f $PRE_START_PATH ] ; then
  7. echo "Running script $PRE_START_PATH"
  8. . $PRE_START_PATH
  9. else
  10. echo "There is no script $PRE_START_PATH"
  11. fi
  12. # Start Supervisor, with Nginx and uWSGI
  13. exec /usr/bin/supervisord